AngularJS ng-keyup command
AngularJS examples
Release the button code execution:
<Input ng-keyup = "count = count + 1" ng-init = "count = 0" />
<H1> {{count}} </ h1>
<H1> {{count}} </ h1>
try it"
Definition and Usage
ng-keyup command is used to tell AngularJS operation required on the specified HTML element button is released.
ng-keyup command does not overwrite the original elements onkeyup event, the event is triggered, ng-keyupexpression and native onkeyup event will be executed.
Button tap sequence of events:
- Keydown
- Keypress
- Keyup
grammar
<Element ng-keyup = "expression "> </ element>
<Input>, <select>, <textarea>, and other editable elements support this instruction.
Parameter Value
value | description |
---|---|
expression | Release the button expression execution. |