Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
AngularJS ng-keyup Event Example
Keywords : Angularjs ng-keyup example, Angularjs keyup event example, Key up event in angularjs with example, Angularjs raise / call function on keyup event example, Angularjs onkeyup event example
Example
<!DOCTYPE html> <html> <head> <title> AngularJs ng-keyup Event with Example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script type="text/javascript"> var app = angular.module('ngkeyupApp', []); app.controller('ngkeyupCtrl', function ($scope) { $scope.getkeys = function (event) { $scope.keyval = event.keyCode; } }); </script> </head> <body> <div ng-app="ngkeyupApp" ng-controller="ngkeyupCtrl"> <h2>AngularJS ng-keyup Event Example</h2> Enter Text: <input type="text" ng-keyup="getkeys($event)" ng-model="ftxt"><br /><br /> <span style="color:Red">Last Key Code: {{keyval}}</span> </div> </body> </html>
Click Here to See Result
Result
Previous
Next