+ we have initial state with no class (must be 'classA')
Maybe there is a better way? Or make, please, function-iterator in angular expressions, f.e. ['classA','classB','classC'][next(index)] (index=0 - start position)
Олег Истомин
unread,
May 21, 2013, 5:25:19 PM5/21/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
You need to add true as the third argument in $scope.$watch. This makes Angular use object-equality to check if a value has changed (see documentation).