You'd need to add the tabSubPages:false config in your ionicBootstrap like this:
ionicBootstrap(MyApp, [], {
tabSubPages:false
});
By doing that, and because that each tab has its own history stack, and NavController instances injected into children @Components of each tab will be unique to each tab, the new page will be opened inside the current tab.
UPDATE:
Please notice that with the new release of Ionic 2.0.0-beta.11 (2016-08-05) that config was renamed to tabsHideOnSubPages so it should be:
The previous names have been deprecated. They will still work in the
current release but will be removed in the future so please update to
the new names.
You'd need to add the
tabSubPages:false
config in yourionicBootstrap
like this:By doing that, and because that each tab has its own history stack, and
NavController
instances injected into children@Components
of each tab will be unique to each tab, the new page will be opened inside the current tab.UPDATE:
Please notice that with the new release of Ionic 2.0.0-beta.11 (2016-08-05) that config was renamed to
tabsHideOnSubPages
so it should be: