YouTip LogoYouTip

Ng Ng Mousemove

AngularJS ng-mousemove Directive

AngularJS ng-mousemove Directive

-- Learning is not just about technology, but also about dreams!

AngularJS Tutorial

AngularJS Tutorial AngularJS Introduction AngularJS Expressions AngularJS Directives AngularJS Model AngularJS Scope AngularJS Controllers AngularJS Filters AngularJS Service AngularJS Http AngularJS Select AngularJS Tables AngularJS SQL AngularJS HTML DOM AngularJS Events AngularJS Modules AngularJS Forms AngularJS Input Validation AngularJS API AngularJS Bootstrap AngularJS Includes AngularJS Animations AngularJS Dependency Injection AngularJS Routing AngularJS Application

AngularJS Examples

AngularJS Examples

AngularJS Reference

AngularJS Reference

AngularJS Examples

AngularJS ng-mouseover Directive

AngularJS ng-mousemove Directive

AngularJS Reference AngularJS Reference


AngularJS Example

Execute an expression when the mouse pointer moves over an element:

Move mouse over me!

{{count}}

Try it yourself Β»


Definition and Usage

The ng-mousemove directive tells AngularJS what to do when the mouse moves over an HTML element.

The ng-mousemove directive does not override the element's native onmousemove event. When the event triggers, both the ng-mousemove expression and the native onmousemove event will execute.


Syntax

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

All HTML elements support the directive.


Parameter Values

Value Description
expression The expression to execute when the mouse moves over the element.

AngularJS Reference AngularJS Reference

← Angularjs Ng MouseupNg Ng Mousemove β†’