WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS ng-mousemove Directive


Example

Execute an articulation when the mouse cursor moves over a <div> element:

<div ng-mousemove="count = tally + 1" ng-init="count=0">Mouse over me!</div>

<h1>{{count}}</h1>
Try it yourself »

Definition and Usage

The ng-mousemove order instructs AngularJS when a mouse cursor moves over the particular HTML element.

The ng-mousemove order from AngularJS won't supersede the component's unique onmousemove occasion, both will be executed.


Syntax

<element ng-mousemove="expression"></element>

Supported by all HTML elements.


Parameter Values

Value Description
expression An articulation to execute when the mouse cursor moves over an element.