ionic tab页面跳转

要使用到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   }

 

posted @ 2018-04-20 18:26  听说这是最长的名字了  阅读(876)  评论(0编辑  收藏  举报