I can't figure out what I'm supposed to use in the following situation:
- The template list a bunch of photos
- Each photo element has a ng-click event that marks the photo as selected and sends an Ajax request to save the photo
- When the save happens, I want to update the class of the photo element to show it as selected
I have a call tie to my ng-class that works when the page loads, but it is called too early when the user clicks. It should be called after the save.
How do I do this?
Thanks a lot.