This question already has an answer here:
i have a Tabs layout here is my page. On click on any of the item i am navgating to next 'this.navCtrl.push(NextPage);`.
But the problem is on my second page also i am getting the tabs take a look at this . after navigation done i no longer need the tabs in my second page.
how to avoid the tabs footer in the second page.
The easiest way is to toggle tab bar visibility with css as tabs is actually a component containing nested views.
So you'd better detect selected page and toggle
tabbar
display. You can track selected page byselectedIndex
or add class depending on it.As of Ionic 2.0.0-rc.1, you can set to hide the tabs when entering a child page in the app's config object by using the config property
tabsHideOnSubPages
. You can find more information here.You need to include the config object in the
NgModule
, inside theIonicModule.forRoot(...)
method like this: