Ionic navbar back button

Hi, can someone explain to me why Ionic is behaving this way, and where could I find the reason for it?

I have two pages in my app, both created via the ionic CLI, both contain the same content; in one of them the back button shows up, but not in the other.

According to the documentation, if there is a there will also be a back button.

image

image

ionic -v: 3.16
Angular CLI -v: 1.5.0
Angular -v: 5.0.0

Thanks,

I suspect this is because of how you’re loading Page 2.

You’re pushing onto your page stack, which ionic manages:

this.navCtrl.push('Page2')

If you don’t want this, you should look into

this.navCtrl.setRoot()

or read some intro tutorials to understand how ionic handles page navigation.

For Ionic 4