ng-mousemove
Handler for mousemove event
Description
The ng-mousemove directive allows you to specify custom custom behavior when a
mouse is moved over an element.
Parameters
ng-mousemove
Type: Expression
Description: Expression to evaluate upon mousemove event. MouseEvent object is available as
$event.Example:
<div ng-mousemove="$ctrl.greet($event)"></div>
Demo
<section ng-app>
<div ng-init="count = 0" ng-mousemove="count = count + 1">Mouse Move</div>
Mouse Move {{ count }} times
</section>
Mouse Move
Mouse Move {{ count }} timesFeedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.