AngularJs ng-change event
home
Run
screen_rotation
fullscreen
cloud_download
<!DOCTYPE html> <html lang="en"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.min.js"></script> </head> <body> <script> function myController($scope) { $scope.currValue = ''; $scope.changed = function() { $scope.finalValue = $scope.currValue; }; } </Script> </head> <body> <div ng-app=""> <div ng-controller="myController"> <input type="text" ng-model="currValue" ng-change="changed()" /></br> Changed Value : {{ finalValue }} </div> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.min.js"></script> </head> <body> <script> function myController($scope) { $scope.currValue = ''; $scope.changed = function() { $scope.finalValue = $scope.currValue; }; } </Script> </head> <body> <div ng-app=""> <div ng-controller="myController"> <input type="text" ng-model="currValue" ng-change="changed()" /></br> Changed Value : {{ finalValue }} </div> </div> </body> </html>
Copyrights@tutorialsplane.com