$ionicNavBarDelegate.back() not working on beta13

I tried to make work an example o a back button in the footer.
I tried the code that is on stackoverflow and it does not wotk, on my console it says that clicked but it does not go back,

if anyone could help me please

.controller('goBackController', ['$scope', '$ionicNavBarDelegate',
  function($scope, $ionicNavBarDelegate) {
      $scope.goBack = function() {

<div class="bar bar-footer bar-dark" ng-controller="goBackController">
    <button class="button button-outline button-light" ng-click="goBack()">
     <i class="ion-arrow-left-c"></i>  Back</button>

Beta 13 is out of date.
Please update to beta 14 and test your code.

update to beta 14 and use $ionicHistory.goBack().
don’t forget to inject $ionicHistory into your controller.

1 Like

i am having the same issue. i was working with old version and it was working fine but when i upgraded, it seems $ionicNavBarDelegate.back() is not working. when i tried android native button to go back it goes back but i guess it dosn’t goes to same controller where i want to go. and data’s will be messed up.