Ng-Keyup-1

 

In this example of Ng-Keyup we have textbox. Type in this textbox when you and on the key up you will get the ascii value of the pressed key. For example ascii value of enter is 13, 8 of backspace, 65 of "A" etc etc.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script> </head> <body ng-app> <div> Type in text box to update key code.<br /> <input type="text" ng-keyup="event=$event" /><br /> Key Code:{{event.keyCode}} </div> </body> </html>
Output