Angularjs Examples

AJS Examples


AngularJS ng-KeyUp Directive

The AngularJS ng-keyup directive is used to attach specific functionality on keyup event.

Syntax

<button ng-keyup="addFunctionality"> 

AngularJS ng-KeyUp Directive Example

<html ng-app>
<head>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
</head>
<body>
<input ng-keyup="count = count + 1" ng-init="count=0">
    key down count: {{count}}
</div>
</body>
</html>
See Live Example