Amazing! Thank you! @reedrichards
BTW, I did with subscribe
At some page:
logout() { this.events.publish('user:logout'); }
In a centralized place:
this.events.subscribe('user:logout', () => { this.app.getRootNav().setRoot(LoginPage); });
Amazing! Thank you! @reedrichards
BTW, I did with subscribe
At some page:
logout() { this.events.publish('user:logout'); }
In a centralized place:
this.events.subscribe('user:logout', () => { this.app.getRootNav().setRoot(LoginPage); });