WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS ng-mouseup Directive


Example

Execute an articulation when a mouse click is finished:

<div ng-mouseup="count = tally + 1" ng-init="count=0">Click me!</div>

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

Definition and Usage

The ng-mouseup order guides AngularJS when a mouse click is finished.

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

The request of a mouse click is:

1. Mousedown

2. Mouseup

3. Click


Syntax

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

Supported by all HTML elements.


Parameter Values

Value Description
expression An articulation to execute when a mouse click is finished.