I’m using a <ion-tabs> in my project and instead of a navbar in the header, I would like to show a custom header with some elements (avatar, a header, some extra info).
The ion-tabs directive creates a <template navbar-anchor></template> in which it usually renders the navbar.
I would like to place my own custom element in it.
Instead of hacking my element into it with some DOM replace-element script, I wonder if there is an elegant solution to this. Is there some way I can hook the navbar-anchor to my own element?
actually, I found that by not treating the tabs as it’s own ViewController I can accomplish what I want;
I have a page with ion-tabs as well as other elements (the header I tried to squeeze into the ion-tabs).
When navigating back, only the ion-tabs are animated (slide-effect) but the other content is not animated.
If I go to tabs.js and comment out the if (viewCtrl) block in the constructor, my main page is treated as the ViewController and the ion-tabs are static.
So I have to figure out how to prevent the dependency injector to not pass a ViewController to the Tabs element.