I included an animation class in a div using a variable.
<div class="{{ItemsChange}}"></div>
In my controller:
$scope.addItem=function(item){
$rootScope.ItemsChange=''
$rootScope.ItemsChange='animated pulse'
}
However, I am facing an issue where the animation class is only applied the first time addItem is called. I want it to be applied every time. I initially set the variable to an empty string and then add the animation class so that 'animated pulse' gets applied each time $scope.addItem is called. How can I resolve this problem?