Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
AngularJS Update Scope Variable Example
Keywords : Angularjs update scope variable from directive example, Angularjs update scope variables in controller with example, Angularjs update variables in view example
Example
<!DOCTYPE html> <html> <head> <title> AngularJs Update Scope Object / Variable Example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script type="text/javascript"> var app = angular.module('angularscopeapp', []); app.controller('angularctrl', function ($scope) { $scope.txtval="Welcome to Tutlane"; }); </script> </head> <body> <h2>AngularJS Update Scope Variables Example</h2> <div ng-app="angularscopeapp" ng-controller="angularctrl"> Enter Name : <input type="text" ng-model="txtval" /><br /><br /> Textbox Value: <b>{{txtval}}</b> </div> </body> </html>
Click Here to See Result
Result
Previous
Next