ng-mouseenter
Handler for mouseenter event
Description
The ng-mouseenter directive allows you to specify custom behavior when a mouse
enters an element.
Parameters
ng-mouseenter
Type: Expression
Description: Expression to evaluate upon mouseenter event. MouseEvent object is available as
$event.Example:
<div ng-mouseenter="$ctrl.greet($event)"></div>
Demo
<section ng-app>
<div ng-init="count = 0" ng-mouseenter="count = count + 1">Mouse Enter</div>
Mouse Enter {{ count }} times
</section>
Mouse Enter
Mouse Enter {{ count }} timesFeedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.