My back button isn’t working when click. I have ng-click=“goBack()” but it isn’t triggering.
controller.js
.controller(“remoteCtrl”, function($scope, $stateParams, $state, $ionicHistory) {
$scope.single = function() {
$state.go(“singleProjectorRoom”);
}
$scope.dual = function() {
$state.go(“dualProjectorRoom”);
}
$scope.goBack = function(){
$ionicHistory.goBack();
}
})
html will be in codepen (the design doesn’t look like this when i run my app)