97
AngularJS ng-keydown Directive
The AngularJS ng-keydown directive specifies the custom behavior of AngularJS when the keyboard is used on the specific HTML element. It doesn’t override the element’s original onkeydown event, both will be executed.
Following is the order of a key stroke:
- Keydown
- Keypress
- Keyup
It is supported by <input>,<select>,<textarea>, and other editable elements.
Syntax:
Parameter explanation:
expression: It specifies an expression which is executed when a key is pressed.
Next TopicAngularJS ng-keypress Directive