As far as I now know you’re not supposed to change the nav-bar in the way I originally thought. Its best to keep the nav-bar generic and use a header-bar if you want to deviate from the standard navigation. This header bar can be included or made into a directive (better) if you want to reuse this. Example:
Make sure you use hide-nav-bar=“true” in ion-view as seen in the example otherwise you end up with two nav-bars. Also use has-header class in ion-content as seen in the example.
In the end this did what I wanted and it is in line with Ionic practice. Hope this helps.
This worked perfectly, however it stops working when you try to put it in an ng-include or in a directive. So, I end up copying/pasting the piece of code to 3 different templates (because I have a screen with 3 tabs and I want to have these nav buttons regardless which tab I click). Yes that’s ugly but it works.
When I tried the “ion-header-bar”, it did NOT work for me, for my “tabbed” page (ion-tabs). What happened was it was then putting the header bar UNDER the tabs.
Probably I’m doing something wrong but i didn’t bother exploring further, I sticked with copy-and-paste, ugky but the quickest solution.