How do I change the color of the header bar in each view?


#1

Well I have a really hacky way of doing it:

<ion-view>

<ion-nav-bar class="bar-assertive">
  <ion-nav-back-button class="button button-icon ion-ios-arrow-left"></ion-nav-back-button>
</ion-nav-bar>

<ion-content>...</ion-content>



</ion-view>

What problems could I face if I placed ion-nav-bar inside ion-view. Is there a better way of doing it?