To include the tabSubPages:false
configuration in your ionicBootstrap
, simply add it like this:
ionicBootstrap(MyApp, [], {
tabSubPages:false
});
By setting this configuration and ensuring that each tab has its own history stack, the new page will open within the current tab since each NavController
injected into child components of each tab will be unique to that tab.
UPDATE:
It is important to note that in the latest release of Ionic 2.0.0-beta.11 (2016-08-05), the config has been renamed to tabsHideOnSubPages
, so the updated syntax should now be:
ionicBootstrap(MyApp, [], {
tabsHideOnSubPages:false
});
The previous configuration names have been deprecated. They are still functional in the current version but will be phased out in the future, so it is recommended to switch to the new names.