YouTip LogoYouTip

Angularjs Ng Mouseup

# AngularJS `ng-mouseup` Directive [![Image 3: AngularJS Reference](#) AngularJS Reference](#) * * * ## AngularJS Example Execute an expression when the mouse button is released over an element:
Click me!

{{count}}

[Try it Β»](#) * * * ## Definition and Usage The **ng-mouseup** directive tells AngularJS what to do when the mouse button is released (click is completed) over a specified HTML element. 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 execute. The order of mouse click execution: 1. Mousedown 2. Mouseup 3. Click * * * ## Syntax All HTML elements support this directive. * * * ## Parameter Values | Value | Description | | --- | --- | | _expression_ | An expression to execute when the mouse button is released after a click. | * * AngularJS Reference](#)
← Ng Ng OpenAngularjs Ng Mouseup β†’