Change ion-nav-bar class dynamically


I have a main class in my nav-bar for my app (bar-royal). But in some specific part I need to change the class of the nav-bar depending on the button the user clicked.

But I can’t manage to do that. I tried with the rootscope but it doesn’t work.

I also tried the directive “navBarClass” but it doesn’t work neither.

Really need help for this one ^^ ! Anyone ?

Thanks !

I recommend reading through the responses here:

There are a few ways to do this there.