Ng-show doesn't works with ion-nav-view


#1

Hi guys,

I have a weird problem, I have the same app as http://codepen.io/ionic/pen/tcIGK and I would like to add the ng-show attribute to my ion-nav-view. I use Jade.

ion-nav-view(name="menuContent", ng-show="navAnimate")

The problem is, navAnimate equals false but the ion-nav-view is still displaying. It’s like any attributes have no effect to ion-nav-view.

Thank you for your help.


#2

The thing that I have done but I don’t think it’s the best answer is :

 div(ng-switch="navAnimate")
 	div(ng-switch-when="false")
 		ion-nav-view(name="menuContent")
 	div(ng-switch-when="true")
 		ion-nav-view(name="menuContent", animation="slide-left-right")