Back button not showing

I’m trying to use the ion-nav-back-button directive as described in the documentation, but I’m not able to get the button to show when switching states. I’ve created a pen that demonstrates the issue; I would expect that the back button would show when we navigate from the widgets.index state to the widgets.show state.

Sorry if I’m missing something obvious, but I’ve circled around the documentation for a while and dug into the source code to no avail.

You need to use the <ion-nav-view> directive not the <div ui-view> directive to have the Ionic navigation understand properly whats going on. All I did was change that on line 20 of the HTML.

2 Likes

Thanks @gnomeontherun. I figured it would be something that easy, but couldn’t figure out the magic myself.