Hide-back-button="true" won't work after entering a non-tabbed view

I’m using ionic tabs with my setup as follows.

Index


Settings Cog

Tab 1

  • Sub-view
    • Sub-sub view

Tab 2

  • Sub-view
    • Sub-sub view

Tab 3

  • Sub-view
    • Sub-sub view

On the main tab views (1, 2 and 3) I’m using <ion-view hide-back-button="true"> which works perfectly to hide the back button and the sub-view & sub-sub views display the back button and work perfectly as well.

The issue that is occurring is when I go to the settings cog, in to the settings view (which has a back button) and then go back, it adds a back button on the tab view I was on even though I have explicitly set them to be hidden?

Has any one else experienced something like this before? It’s quite a frustrating one that I’ve yet to resolve.

Rookie error. I was removing the class “hide” on .back-button by mistake.