Sign in, then SideMenu

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

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>

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

FYI : This is fixed in the nightlies

Great work. Thanks.

Kenneth