mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Closes #1076 If the user for example switches tabs, $ionicNavBarDelegate.getPreviousTitle() will return the title from the navbar within the previous tab. In this case, the back button will not be shown. To not use the previous title in a case like this, you can now do: ```js var shouldShowTitle = $ionicNavBarDelegate.showBackButton(); if (shouldShowTitle) { $scope.previousTitle = $ionicNavBarDelegate.getPreviousTitle(); } ```