AngularJS ng-change directive
ng-change is use
to evaluate when content is being changed by the user.
The ng-change
directive requires an ng-model directive to be present.
Example:
<div ng-app="myApp1" ng-controller="Employee1Controller">
<p>Name:
<input ng-change="GetInfo()" type="text" ng-model="Name" /></p>
<span style="color:blue">you
have changed the value {{changecount}}
times</span>
</div>
<script>
var
myapp = angular.module('myApp1', []);
myapp.controller('Employee1Controller',
function ($scope) {
$scope.changecount = 0;
$scope.GetInfo = function
() {
$scope.changecount++;
}
});
</script>
Awesome post which i have seen.I read your blog everything is helpful and effective.
ReplyDeleteAngularJS Training in Chennai
AngularJS Course in Chennai
AngularJS Training in Anna Nagar
AngularJS Training in T Nagar
AngularJS Training in OMR
Web Designing Course in chennai
Web Designing training in chennai
Web Designing Training in Velachery
mp3 juice download is very demanded, and everybody would like to get such platform. Here you can indeed found better-chosen files.
ReplyDeleteGreat Article
ReplyDeleteB.Tech Final Year Projects for CSE in Angular
Angular Training in Chennai
Project Centers in Chennai
JavaScript Training in Chennai
I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... 经济代写
ReplyDelete