YouTip LogoYouTip

Ng Ng Mousemove

# AngularJS `ng-mousemove` Directive [![Image 3: AngularJS Reference](#) AngularJS Reference](#) * * * ## AngularJS Example Execute an expression when the mouse pointer moves over an element:
Move your mouse over me!

{{count}}

[Try it Β»](#) * * * ## Definition and Usage The **ng-mousemove** directive tells AngularJS what to do when the mouse moves over an HTML element. The **ng-mousemove** directive does not override the element's native onmousemove event. When the event triggers, both the **ng-mousemove** expression and the native onmousemove event will execute. * * * ## Syntax All HTML elements support the directive. * * * ## Parameter Values | Value | Description | | --- | --- | | _expression_ | An expression to execute when the mouse moves over the element. | * * AngularJS Reference](#)
← Ng Ng MousemoveNg Ng Mouseenter β†’