要使用到Tabs,现将Tabs导入
1 import { NavController, ModalController, Tabs } from 'ionic-angular';
把要选择的Tabs页面的序号导入
1 selectTab(index: number) { 2 var t: Tabs = this.navCtrl.parent; 3 t.select(index); 4 }
要使用到Tabs,现将Tabs导入
1 import { NavController, ModalController, Tabs } from 'ionic-angular';
把要选择的Tabs页面的序号导入
1 selectTab(index: number) { 2 var t: Tabs = this.navCtrl.parent; 3 t.select(index); 4 }