The idea is I need a conditionally shown button in the header. I know Ionic has a back button directive like that, but my app has a home page that is temporary. Because of that, I need to control when the button shows up by hand. In my controllers I’m using a variable called notHome that I set to true when I’m not on the first two views I consider home (the temporary one and the real one).
In my testing though the button never shows up. As I said, this smells more like me screwing up something in Angular.
Not sure I understand why this should require $rootScope to work - if notHome is set in the view controller, shouldn’t that be enough?
Im having a similar problem, but in my case the button shows up sometimes, and sometimes not. If I force a state refresh it renders. Maybe there is something in the digest cycle that isn’t in sync with when ng-show is tested.