Conditionally hide back button


#1

How can I hide the back button only if the previous page is the login page? using nav-router

-Tim


#2

I’m also interested in this question. Is there a way for a user to click a “home” button and not have the back button on the home screen? Or alway hide the back button on the home screen?


#3

Always hiding the back button on any particular view is easily done with:

<ion-view title="navTitle" left-buttons="leftButtons" right-buttons="rightButtons" hide-back-button="true">

#4

I saw that but how do I hide the back button in one view only sometimes?


#5

Like this : http://codepen.io/calendee/pen/eusfl

This demonstrates showing the back button (for page 2) every other time the page is visited.