Removing the back button on view change

I think what you want to do is set the home state to the root of the navigation stack. This will make it so you can’t go back to the login page but the menu icon will show:

$ionicHistory.nextViewOptions({
    historyRoot: true
});
$state.go('app.home');

I put this in a function in a service and call it every time I want to navigate to the home page.

2 Likes