Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Tabs persist after logging out of app, start stacking on log in

$
0
0

@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. :stuck_out_tongue: 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

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>