AngularJS extends HTML with new attributes.The AngularJS framework works by first reading the HTML page, which has embedded into it additional custom tag attributes. It is easy to learn.
<!doctype html>
<html
ng-app
><head>
<script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/
angular.min.js
“> </script></head>
<body>
<div>
<label>Name:</label>
<input type=”text”
ng-model
=”yourName” placeholder=”Enter a name here”><hr>
<h1>Hello
{{yourName}}
!</h1></div>
</body>
</html>
0 comments:
Post a Comment