AngularJs ng-mousemove event example


AngularJs ng-mousemove event example : AngularJs ng-mousemove event example binds mousemove event with elements in html.


Syntax: AngularJs ng-mousemove event

The below example shows the ng-mousemove event directive.

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
</head>

<body>
<div ng-app="" ng-init="i=1">
    <button ng-mousemove="i = i+1">Mouse Move(On Mousemove)</button>
     Counter = {{i}}
</div>
</body>
</html>

Try it »

AngularJs ng-mousemove event example

AngularJs ng-mousemove event example


Advertisements

Add Comment

📖 Read More