This is my code
html
<ion-tabs [selectedIndex]="mySelectedIndex" id="tabs"> <ion-tab [root]="tab1Root" tabTitle="home" tabIcon="home" show="false"></ion-tab> <ion-tab [root]="tab2Root" tabTitle="about" tabBadge="1" tabIcon="ios-calendar-outline"> </ion-tab> </ion-tabs>
ts
export class TabsPage {
tab1Root: any = TabHomePage;
tab2Root: any = TabSchedulePage;
mySelectedIndex: number;
constructor(navParams: NavParams) {
this.mySelectedIndex = navParams.data.tabIndex || 0;
}
I want to hide the home button but
if I use show = “false” so I setRoot (TabsPages) can not navigate to the home page
Does anyone have a solution?