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.

Syntax:

Parameter explanation:

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

Test it Now



Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA