I took the “tabs” template.
I’d like to have a full screen login page before the user can access the app.
I’ve tried to add “ng-show” to the auto-generated ion-nav-bar and ion-nav-view elements.
They disappear, but nothing in the add works, it becomes unresponsive.
In the same idea, I wouldn’t like my other URLs to be accessible if you are not logged in.
I created a service with a variable loggedIn. I set it to true when I click the login button.
Then I thought in all my controllers to do a if(!loggedIn) redirect to /login
But it seems overkill to do this everywhere no?
Can’t this be done at the Router level maybe?