I’m using the local notifications plugin (https://github.com/katzer/cordova-plugin-local-notifications) in my app. I have a list in which each item has an option button to set/cancel a local notification for that item (using ion-item ng-repeat
in one of my ion-list
's ).
I need the option button to render differently when the list loads depending on if a local notification is already set for that item. Whats the best way to check do this?
Can I hook up a function to set when ng-repeat is being ran? Or should I use a custom directive? OR should this be done in my controller? Or am I missing something obvious?
Any help or sample code would be great.
Thanks in advance