Ionic scope value isn't updated navigate between $state


#1

I just want to achieve a simple thing : hide or show right nav button on the menu.

I used ng-show but the value of the scope isn’t updating due to cache.

How to solve this issue? I know it will work by putting cache:false in the state, but that will cause my app to have bad experience for the user, any other way to achieve this simple thing?


#2

Have you tried using broadcast and on?