Login screen when app loads


#1

Hi,

Noob here :smile:

I am using the tabs layout and want that when the app starts the login screen appears on full screen without the tabs.

I have tried using the ng-show on the ion-nav-bar but it doesnt work.

Any suggestions?


#2

Make two different states with two different layouts.
in your index.html you will have an ion-nav-view

the login states pushs its template to this nav-view without tabs.
the other state pushs its tempate to the nav-view with tabs.

You should read into ionic ion-nav-view and the ui-router documentation.

Greetz.