I added an animation class to a div with a variable.
<div class="{{ItemsChange}}"></div>
In my controller:
$scope.addItem=function(item){
$rootScope.ItemsChange=''
$rootScope.ItemsChange='animated pulse'
}
Now, I want this class to be applied everytime addItem is called, This is exactly why I am first adding empty string to variable and then the animation class so that animation class 'animated pulse' is applied each time $scope.addItem is called but animation class gets applied only the first time.
How do I fix this?