ng-mouseover has 0 priority . perform any particulate task on mouse over After ng-mouseover fired :This is angularjs example of ng-mouseoverng-change.What is ng-class: ng-class used to add a class in HTML element on a particular condition . template
AngularJS includes certain directives which can be used to provide custom behavior on various DOM events, such as click, dblclick, mouseenter etc.ng-change.ng-mouseover.The ng-mouseenter directive sets enter to true, which will apply redDiv class to the
element. Angular does some funky things sometimes with variable scoping like this, and so this is a perfect example of why you should always use the controller as syntax in AngularJS.