Whats the number of times the letter i appears in:
The menu seems to be attached to the Main App Controller.
I’m wondering if there is a way to dynamically alter the top nav bar based on the view/template you currently are on.
I know with ion-header-bar, it’s pretty straight forward, I just can’t seem to get things working with how the SideMenu starter is setup.
For example, after navigating to another view, I would like an additional button to appear in the header. That button needs an ng-click, with data passed from the current views controller (rather than the menu.html/MainApp controller).
I would add the button as usual but hidden. Then, listen for the $stateChangeSuccess event to add a class name.
Thank you ! The key was setting a nested ng-controller in menu.html, along with your suggestion for listening to state change.
The official way to add additional headerbar buttons is with the ion-nav-button directive.
But the new button in state app.perfil dont show. The value of esPerfil is correcty true.
What is lacking to update the header?

user
In the text, there are fifty-four "i"s.
assistant