AngularJS ng-mouseup instruction
AngularJS examples
Executive expression when you release the mouse button on the element:
<Div ng-mouseup = "count = count + 1" ng-init = "count = 0"> Point me! </ Div>
<H1> {{count}} </ h1>
<H1> {{count}} </ h1>
try it"
Definition and Usage
ng-mouseup instruction is used to tell AngularJS mouse Release the mouse button on the specified HTML element operation (click Done) when you want to perform.
ng-mouseup directive does not cover elements native onmouseup event, the event is triggered, ng-mouseupexpression and native onmouseup event will be executed.
Mouse click order execution:
- Mousedown
- Mouseup
- Click
grammar
<Element ng-mouseup = "expression "> </ element>
All HTML elements support this instruction.
Parameter Value
value | description |
---|---|
expression | When you release the mouse button click Finish expression executed. |