Hi,
I have a subheader that need to shown and hidden dynamically
Here’s my code:
> <ion-side-menu-content>
> <ion-nav-bar class="bar-assertive-900">
> <ion-nav-back-button></ion-nav-back-button>
> <ion-nav-buttons side="left">
> <button menu-toggle="left" class="button button-icon button-clear ion-navicon"></button>
> </ion-nav-buttons>
> <ion-nav-buttons side="right">
> <div class="logo"><img src="img/logo_white.svg"/></div>
> <button ng-click="toggleSearch()" class="button button-icon button-clear ion-ios-search-strong"></button>
> <button ng-click="popover.show($event)" class="button button-icon button-clear ion-android-more-vertical"></button>
> </ion-nav-buttons>
> </ion-nav-bar>
> <ion-header-bar ng-if="search.show" class="bar-subheader">
> <div class="list list-inset">
> <label class="item item-input"><i class="icon ion-search placeholder-icon"></i>
> <input type="text" placeholder="Search"/>
> </label>
> </div>
> </ion-header-bar>
> <ion-nav-view name="menuContent" ng-class="{'has-subheader':search.show}"></ion-nav-view>
> </ion-side-menu-content>
ng-class
doesn’t work with ion-nav-view
any idea how to fix it?
P.S. the value of search.show is changing but the class never been assigned to ion-nav-view