Is there any way to force the back button to show on certain navigations? If you checkout the Codepen again in full screen mode, and navigate to Details from the tabs and hit the browser back button, it definitely goes back to where you were at.
Thanks for your reply. How would I specify which states can have a back button on them or not since the ion-nav-back-button is defined in the navigation template? Is this some workaround or something you can point me to that will guide me in trying this out?
So if the back button doesn’t exist at all (since it is the beginning of the navigation stack), you can insert a custom back button on the navbar for the tabbed view:
Then in your run function you can define the goBack function and when to show the custom back button:
.run(function($rootScope, $state) {
$rootScope.goBack = function() {
// function to go back
window.history.back();
}
$rootScope.$on('$stateChangeSuccess', function () {
if ($state.$current == 'app.tabs1.home1') {
$rootScope.showCustomBack = true;
}
});
})