AngularJS ng-keyup Directive
AngularJS Example
Code executed when a key is released:
Definition and Usage
The ng-keyup directive is used to tell AngularJS what action to perform when a key is released on a specified HTML element.
The ng-keyup directive does not override the element's native onkeyup event. When the event is triggered, both the ng-keyup expression and the native onkeyup event will be executed.
The sequence of key events:
- Keydown
- Keypress
- Keyup
Syntax
The directive is supported by <input>, <select>, <textarea>, and other editable elements.
Parameter Values
| Value | Description |
|---|---|
| expression | The expression to be executed when a key is released. |