AngularJS

AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng keydown Directive

AngularJS ng-keydown Directive

 

 

The ng-keydown directive is used to tell AngularJS what to do when the keyboard event key down has occurred on the specific HTML element. It will not override the default onkeydown event and both will be executed.

 

Order of keystroke will be:-

 

  1. keydown
  2. keypress
  3. keyup

 

Syntax:-

 

< element ng-keydown="expression" >< /element >

 

Further Explanation:-

 

Value Description
expression An expression to execute when a key is pressed.

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS