I'm trying to implement a bookmark-like function into my app and have to watch a variable, which stores all the bookmarked ID's. Based on that variable I have to tell ng-class to reevaluate it's function expression so the class bookmarked get's added or not.
How do I tell ng-class to run again when the variable $scope.Bookmarks changes?
<a ng-repeat="event in events"
ng-class="isBookmarked(event.id)"
class="icon__bookmark"></a>