Just starting out with Ionic and working on creating a login and logout process.
Here is the structure:
Login:
LoginPage => TabsPage
Logout:
TabsPage => LoginPage
Currently, I am handling logging out using this.navCtrl.setRoot(LoginPage)
. While this sets the LoginPage
as the root, when I click the hardware back button, the LoginPage
gets dismissed but the TabsPage
remains active in the background.
Any suggestions on how to resolve this issue? How can I completely remove the TabsPage
from the navigation?