@darkwingdaphne wrote:
logout() { console.log('logged out'); this.local.remove('id'); this.nav.setRoot(IntroPage); }
I have a log in screen that is intro page. After logging in I set the root page to my tabs page. That all works fine. When I log out, I'm trying to reset the root to the login page, but that's not happening. The login page reappears, but the tabs are still present. When logging back in, another set of tabs stack on top of the old tabs. I can't figure out how to clear them away.
The only thing that has kinda worked is
window.location.reload();
as an alternative to the last line, but that seems a bit hacky. It flashes white they redirects to my login.Thank you!
Posts: 2
Participants: 2