Reputation: 193
I am new to ionic framework
After i login to the app, i am redirecting to instance page. In the instance page, i have a nav-bar enabled. But i see nav-back button enabled and on refresh , i get back the nav-bar.
I tried adding 1 hide-nav-bar = false in instance page (no use) 2 hide-back-button= true in instane page (no use) 3 In the login controller, i tried adding $ionicHistory.nextViewOptions({ disableBack: true }); before i have $state.go('instance'); (no use)
But when i refresh, from then on, it works fine. Can someone help on this
Upvotes: 0
Views: 79
Reputation: 2740
You can use $ionicNavBarDelegate
In your controller
.controller('YourCtrl', function($ionicNavBarDelegate) {
$ionicNavBarDelegate.showBackButton(false);
})
Upvotes: 1