Ng-keydown will increase the count by 1 when everytime we will press the key in textbox.
In this we can filter student name on
ng-keydown directive.When we type in textbox its value bind to the searchValue variable and its value compare to dropdown value.
ng-keydown directive KeyDown value is set to true.For true value of expression
KeyDown class is apply otherwise
keyUp class is apply.
When we type in textbox
ng-keydown directive will call the lowerCase(text) function which convert the uppercase character to lowercase.
For true value of keyDown variable
ng-class keyDown will apply.
In this example of
Ng-Keydown, We have added validation on key down of text boxes. Textbox is used to get the age of user so if user will enter value other then numeric then that will be invalid value. So we added validation on textbox keydown using