YouTip LogoYouTip

Ng Ng Mousemove

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

{{count}}

[Try it Β»](#) * * * ## Definition and Usage The **ng-mousemove** directive is used to tell AngularJS what operation to perform when the mouse moves over an HTML element. The **ng-mousemove** directive does not override the element's native onmousemove event. When the event is triggered, both the **ng-mousemove** expression and the native onmousemove event will be executed. * * * ## Syntax All HTML elements support this directive. * * * ## Parameter Values | Value | Description | | --- | --- | | _expression_ | An expression to execute when the mouse moves over the element. | * * AngularJS Reference Manual](#)
← Pr Text Letter SpacingNg Ng Mousemove β†’