First Application of AngularJS
Step 1 :- Start Visual Studio then Create Empty Web Application.
Step :- Add HTML page in your Application.
Step 3 :- Add Script file / Source link in your page...
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
Step 4:- Write Code :--
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello World</title>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<div ng-app="">
<h1>First
Example of AngularJS</h1>
<p>Please
Enter "Hello World"/Text in the TextBox:
<input type="text" ng-model="text"></p>
<h2 ng-bind="text"></h2>
</div>
<div id="footer"><h3>Powered
By DotNet By Vickypedia</h3></div>
</body>
</html>
Step 5 :- Run your Application ...
No comments:
Post a Comment