This is most likely a silly Angular question than an issue with Ionic. I’ve got this in my core index.html:
<ion-nav-bar class="bar-positive"> <ion-nav-buttons side="left"> <button class="button" ng-click="goHome()" ng-show="notHome"> Home </button> </ion-nav-buttons> </ion-nav-bar> <ion-nav-view> </ion-nav-view>
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.