AngularJs Controllers
home
Run
screen_rotation
fullscreen
cloud_download
<!DOCTYPE html> <html lang="en"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> </head> <body> <div ng-app="myApp" ng-controller="myController"> <p>Enter Name <input type="text" ng-model="name"></p> <p>{{name}}</p> </div> <script> var firstApp = angular.module("myApp",[]); firstApp.controller("myController",function($scope){ $scope.name = "Tani" }); </script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> </head> <body> <div ng-app="myApp" ng-controller="myController"> <p>Enter Name <input type="text" ng-model="name"></p> <p>{{name}}</p> </div> <script> var firstApp = angular.module("myApp",[]); firstApp.controller("myController",function($scope){ $scope.name = "Tani" }); </script> </body> </html>
Copyrights@tutorialsplane.com