Execute an expression at every keystroke:
<input ng-keypress="count = count + 1" ng-init="count=0" />Try it Yourself »
Definition and Usage
ng-keypress directive tells AngularJS what to do when the
keyboard is used on the specific HTML element.
ng-keypress directive from AngularJS will not override the element's original onkeypress event, both will be executed.
The order of a key stroke is:
Supported by <input>, <select>, <textarea>, and other editable elements.
|expression||An expression to execute when a key is pressed.|