YouTip LogoYouTip

Ng Ng Mouseenter

# AngularJS `ng-mouseenter` Directive [![Image 3: AngularJS Reference](#) AngularJS Reference](#) * * * ## AngularJS Example Execute an expression when the mouse pointer passes over an element:
Mouse over me!

{{count}}

[Try it Β»](#) * * * ## Definition and Usage The **ng-mouseenter** directive tells AngularJS what to do when the mouse is moved over an HTML element. The **ng-mouseenter** directive does NOT override the element's native onmouseenter event. Both the **ng-mouseenter** expression and the native onmouseenter event will execute when the event is triggered. * * * ## Syntax All HTML elements support the directive. * * * ## Parameter Values | Value | Description | | --- | --- | | _expression_ | An expression to execute when the mouse is moved over the element. | * * AngularJS Reference](#)
← Ng Ng MousemoveNg Ng Mouseenter β†’