Javatpoint Logo
Javatpoint Logo

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.


Parameter explanation:

expression: It specifies an expression which is executed when a key is pressed.

Test it Now

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA