Ionic back button not working

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)

Hi @blanko

Can you please paste your HTML code here, So that we can understand the issue clearly.

Hi, I’ve updated and put my html in code pen due to some problem.

I am not sure about your syntax of button on nav bar because in ionic 1 Doc Buttons in NavBar have different syntax than your syntax.