方法一
tab.html
<ion-tab tabsHideOnSubPages="true" [root]="notificationRoot" tabTitle="{{ 'notification.title' | translate }}" tabIcon="notifications" [tabBadge]="countNotificationItem()" tabBadgeStyle="danger"></ion-tab>
<ion-tab tabsHideOnSubPages="true" [root]="workRoot" tabTitle="{{ 'work.title' | translate }}" tabIcon="albums"></ion-tab>
<ion-tab tabsHideOnSubPages="true" [root]="myRoot" tabTitle=" {{ 'mine.title' | translate }}" tabIcon="person"></ion-tab>
方法二
app.module.ts
IonicModule.forRoot(MyApp, {
// backButtonText: '返回',
tabsPlacement: 'bottom',
tabsHideOnSubPages: 'true' // ionic2隐藏全部子页面tabs
})
更多angular1/2/4/5、ionic1/2/3、react、vue、微信小程序、nodejs等技术文章、视频教程和开源项目,请关注微信公众号——全栈弄潮儿。

网友评论