2016-09-28 9 views
0

私はionicとangularjsプロジェクトに取り組んでいます。表示中のタブのいずれかで番号が含まバッジと私は数字が0以上数字が0より大きい場合のみバッジ番号を表示

<ion-tab icon="ion-android-notifications" title="Notifications" href="#/tab/notifications" ng-app="starter" ng-controller="notifications_count" badge="total" badge-style="badge-assertive"> 
     <ion-nav-view name="list-notifications"></ion-nav-view> 
    </ion-tab> 
+0

のtry条件NG-かの場合にのみバッジを表示します –

答えて

3
<ion-tab icon="ion-android-notifications" title="Notifications" href="#/tab/notifications" ng-app="starter" ng-controller="notifications_count" badge="total" ng-if="total>0" badge-style="badge-assertive"> 
    <ion-nav-view name="list-notifications"></ion-nav-view> 
</ion-tab> 
関連する問題