How to add a navbar button with ion on / ion off function
1 answer
The icon-on
and attributes icon-off
are only applicable to the tabs I think. You can use ng-class
as you see here. Based on the value of your property $scope.starred
, it will show a star or star outline.
<span class="icon" ng-class="{'ion-ios-star': starred, 'ion-ios-star-outline': !starred}"></span>
0
source to share