How to get rid of has-header class?


#1

I have tried searching this, and have not found answers. Most people seem to want to add the has-header and like the way it is now added dynamically. I am trying NOT to have it.

I have tried adding the class .hide-nav-bar to the ion-view directive.
I have tried adding the attribute hide-nav-bar=“true” to the ion-view directive.
I have tried adding the class .has-header-false to the ion-content directive.

Nothing has worked. The ion-content always ends up with the .has-header class appended to the end. Does anyone know how to get rid of this for these screens?


#2

I don’t know if there’s a better way, but you could create another class and nullify everything set by has-header class.


#3

Just curious, why do you want to get rid of this?


#4

With ionic 1.3 you can add has-header="false"