-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide back button by default #638
Comments
i'm noticing this issue as well |
Fixed. |
I updated Ionic and now my back buttons are hidden (class="hide"), which I am guessing is because of this "Hide back button by default". So, how do I show it now? |
What's the markup for your ionNavBar? |
<ion-nav-bar type="bar-light"
back-button-type="button-icon button-clear"
back-button-icon="ion-ios7-arrow-back"
align-title="right"></ion-nav-bar> |
That looks right. What kind of navigation are you doing where you expect back buttons and they aren't showing up? |
I'm not sure I understand your question, but I arrive at the page I have the nav-bar in through a link. Specifically, a link on "#/cardholder" with href="#/slide-box/card/{{card.id}}" where slide-box is an abstract state with a header (where the back button should be to take you back to "#/cardholder") and a slide-box in the content. |
It's gettting a little clearer, Would you mind sharing your state definitions? |
|
OK. I think there's no back button from the nav-view because you are changing from one parent state to another ('cardholder' parent to 'slide-box' parent). The back button works when you're under the same parent state. Think of it like the nav-bar thinks you 'switched tabs' - or switched to a new navigation stack - because your state changed. You have a couple choices:
|
OK, I went for option 3 and it is working, thanks! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
The back button should be hidden by default so it doesn't flicker on initial page loads.
The text was updated successfully, but these errors were encountered: