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

Nav.setRoot won't work from inside a class constructor

$
0
0

@fefelegal wrote:

Hi!

I'm not really sure if this is a bug or just me doing things the wrong way.

This is the way I'm managing to logout from my app: I created a Logout page and in the constructor I unset some variables and clear local storage and then redirect to Login with this.nav.setRoot(LoginPage). The only problem is that the setRoot is not working properly. From the console I know the Login page is being loaded because I see all events being logged, but the view (the html itself) won't change to the Login page. Am I doing something wrong?

Thanks!

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles