Ion-nav-back-button has a mind of it's own!


#1

I started an app based off of the Sociogram app ( https://github.com/ccoenraets/sociogram-angular-ionic ) which uses the navigation bar.

The “back” button which is in the header seems to have a mind of it’s own. The goal here would be that before you’re logged in, the back button shows up allowing you to go between the login/signup screens… but once you’re logged in it goes away. This forces you to open the menu and click Logout.

However, with the views the declarations of:

<ion-view title=“title” hide-back-button=“false” hide-nav-bar=“false”> don’t sem to always work. I’ve also read to use this:

$ionicNavBarDelegate.showBackButton(true);

But that doesn’t seem to work either. I’m a little lost as to what controls whether or not the button shows up! Are there any “built in” rules for when it appears?

Are these methods listed above not enough to force it to appear/hide?

Any help to shed some light on this would be helpful. I’ve searched but haven’t found anything that seems to specify exactly what the rules are.

I’ve also tried putting the ion-nav-bar into each individual view, and I’m getting the same (weird) results.

What gives??

Thanks!