Ng-Keyup-2

 

In textbox ng-keyup event increase the count by 1 each time when key is up.

 
 
 
<!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 count value.<br /> <input type="text" ng-keyup="count=count+1" /><br /> Count:{{count}} </div> </body> </html>
Output