I’m developing my first application with Ionic (wonderful framework!) and I have a few questions about how to structure my pages and use the router…
The main pages of my application are a login page and a page with three tabs that the user can only view when connected. They are wrapped in nav-page directives and powered by a Nav Router controller. So here are my questions:
- How to redirect the user to the login page if no authentication
token has been stored locally? In other words: how to redirect the
user from one route to another from a controller?
- In this case, is it possible not to use the animation set on the Nav
- I’d like to hide the navigation bar on the login page, is it
- It is written in the documentation that “the Nav Router can also be
updated from child view controllers such as tabs” but I can’t find
how? I’d like to define a route for each tab so that accessing one
of these routes automatically activates the corresponding tab.
Many thanks in advance! Best regards,