AngularJS ng-mouseenter بياناتي

Definition and Usage

ng-mouseenter Directive tells AngularJS what operation to perform when the mouse cursor enters a specific HTML element.

In AngularJS ng-mouseenter The directive does not override the original onmouseenter event of the element, both will be executed.

Example

Execute expression when mouse cursor enters <div> element:

<div ng-mouseenter="count = count + 1" ng-init="count=0">Please hover your mouse over me!</div>
<h1>{{count}}</h1>

Try it yourself

Syntax

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

All HTML elements support.

Parameters

Parameters Description
expression Expression to be executed when the mouse cursor enters the element.