WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS ng-mouseenter Directive


Example

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

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

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

Definition and Usage

The ng-mouseenter mandate guides AngularJS when a mouse cursor enters the particular HTML element.

The ng-mouseenter mandate from AngularJS won't abrogate the component's unique onmouseenter occasion, both will be executed.


Syntax

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

Supported by all HTML elements.


Parameter Values

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