Hide Title Button in Home View


#1

Hi I’ve this simple title button and I need to hide it in home view but show it in other views.

<ion-nav-buttons side="right">
      <img src="img/title2.png" class="title-button" hidden="???">
</ion-nav-buttons>

How can I do that?


#2

You can use the ng-hide directive:

<ion-nav-buttons side="right">
      <img src="img/title2.png" class="title-button" ng-hide="controler.isHome()">
</ion-nav-buttons>