I want to add star button on navigation bar and when user press on this, the button show selected icon and next time is press it show unselected. I tried it by using ionic-on and ionic-off but I can't make it.
相关问题
- Plugin with id 'com.google.gms.google-services
- angularJS: ui-router equivalent to $location.searc
- Separate AngularJS Controllers Into Separate Files
- How to pass form data from Ionic 3 to PHP file?
- Angular ngAnimate not working first time on page l
相关文章
- Passing variable through URL with angular js
- Watch entire object (deep watch) with AngularJS
- Angular ng-if change span text
- Ionic 4: Hardware Back Button Reloading Applicatio
- Can ng-show directive be used with a delay
- AngularJS $routeParams vs $stateParams
- Multiple parameters in AngularJS $resource GET
- How to set class/style of accordion heading in Ang
The
icon-on
andicon-off
attributes only apply to tabs I think. You can useng-class
like you see here. Based on the value of your$scope.starred
property, it will show a star or the outline of a star.