EXIT ion-tabs


#21

Hi, the solution can be found in

https://github.com/Tommertom/tabsdemo/blob/master/src/pages/home/home.ts

import {Component} from ‘@ angular / core’;
import {NavController, App} from ‘ionic-angular’;
import {LoginPage} from ‘…/login/login’;

@Component ({
selector: ‘page-home’,
templateUrl: ‘home.html’
})
export class HomePage {

constructor (public navCtrl: NavController, private app: App) {

}

doLogout () {
this.app.getRootNav (). setRoot (LoginPage);
}

}


#22

This saved me 1 hour of confusion. Thanks.