Sign in, then SideMenu


#1

Hi

I’m new to ionic but not to AngularJs. I’m trying to do a Sign in, then SideMenu instead of Sign In, then Tabs.

The problem is when the Log In button is clicked, then the “Back” button in upper left corner is displayed. Ionic should not push to history when switching from login to search.

CodePen: http://codepen.io/ziaxdk/pen/sJctL/

Any suggestions?

Kenneth


#2

i have same issue, but i don’t need back button in such level view.

put hideBackButton = true to ion-view

<ion-view hide-back-button="true"></ion-view>

#3

Theoretically, the new nav-clear directive should do this for you. However, it doesn’t work if you have ng-click defined.

So, I took the logic from the directive and put it in your controller.

I’ve opened issue # 1047 for this : https://github.com/driftyco/ionic/issues/1047


Is there a way to clear out the nav-router history and prevent a back button?
#4

FYI : This is fixed in the nightlies


#5

Great work. Thanks.

Kenneth