Hello, what is the best way to logout?
I remove items from the localstorage, clean and navigate to the login, but when I log in again it does not work, I must use the back button and return to make it work. Any solution? Thank you…
Once you logout , then make the root page to the login page…
for eg:
logout(){
// check for logout is success or any api call
this.navctrl.push(loginPage) // or whaever you are dealing with
}
then once logout and exit the page and comes back it will be in the login page…