Back button not showing when coming from nested pages (tabs)

Hi,

Solution 1
I’m using this workaround for the moment to force the display of the back button.

$ionicNavBarDelegate._instances.forEach(function (instance) {
    var tamere = instance.update;
    instance.update = function (viewData) {
        viewData.enableBack = true;
        tamere(viewData);
        instance.update = tamere;
    }
}

Hope this might help.

PS : Salut Thomas ! Alors on fait de l’ionic ? n7 represent man !

Solution 2
After a while I found a better solution (still using the same viewData object)

Add this to your controller:

$scope.$on('$ionicView.beforeEnter', function (event, viewData) {
    viewData.enableBack = true;
});

Cheers

19 Likes