I created an Ionic 2 app with tabs using the following command:
ionic starts project1 tabs --v2
Next, I added a new page and provider to the project:
ionic g provider authService
ionic g page loginPage
After a successful login, I set the root to the TabsPage:
this.nav.setRoot(TabsPage)
However, after logging out, the tab panel still remained visible and all pages were still accessible.
How can I completely clear all pages upon logout and hide the tab panel as well?