Hi guys, I was wondering what would be a nice implementation of a logout method, specifically which method from the navCtrl would you use?
I have this example:
logout() {
console.log("Logging out user");
this.service.logout();
this.navCtrl.navigateRoot("/welcome");
}
But there is no animation at all, the logout method from the authService is only removing the token from the storage. Should I use navigateBack? or implement a loading or something?