How to adding navigation bar button having ionic-on/ ionic-off functionality


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.


If you still have this issue, could you please add a plunker or codepen? Just to get some idea, what exactly you are trying to achieve?