<!DOCTYPE html>
<html>
    <head>
        <title> Wikitechy AngularJS Tutorials</title>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
    </head>
    <body ng-app="">
        <h2>ng-blur Directive in AngularJS Tutorials</h2>
        <lable>Enter the text:</lable>

        <input ng-blur="count = count + 1" ng-init="count=0">

        <h3>Count={{count}}</h3>
        <h3> The "count" variable value will be increased when
            the input field loses focus.
        </h3>
    </body>
</html>
 


www.wikitechy.com © Copyright 2016. All Rights Reserved.