AngularJS ng keypress Directive
AngularJS ng-keypress Directive
The ng-keypress directive is used to tell AngularJS what to do when the keyboard event key press has occurred on the specific HTML element. It will not override the default onkeypress event and both will be executed.
Order of keystroke will be:-
< element ng-keypress="expression" >< /element >
|expression||An expression to execute when a key is pressed.|