AngularJS ng-mouseup
Directive
AngularJS Example
Execute an expression when the mouse button is released over an element:
Definition and Usage
The ng-mouseup directive is used to tell AngularJS what to do when the mouse button is released over the specified HTML element (click completion).
The ng-mouseup directive does not override the element's native onmouseup event. When the event is triggered, both the ng-mouseup expression and the native onmouseup event will be executed.
Order of mouse click events:
Mousedown
Mouseup
Click
Syntax
This directive is supported by all HTML elements.
Parameter Values
Value | Description |
---|---|
expression | The expression to be executed when the mouse button is released after a click. |