Ankita Ankita - 5 months ago 44
AngularJS Question

Onsen toolbar background color not changing

I am using a page as a right side menu but it is displaying the toolbar of the backgroud of the first page before it change to some other.So what can be done ?

Answer

You can change navigation color as following:

page1.html

<ons-page>

  <ons-toolbar style="background: #4CD964;">
    <div class="center" style="color: #FF0000" >Navigator</div>
  </ons-toolbar>

  ...

</ons-page>

enter image description here