<!DOCTYPE html>
<html>
<script src=“js/angular.js”></script>
<body><div ng-app=“”>
<p>Name: <input type=“text” ng-model=“name”></p>
<p ng-bind=“name”></p>
</div></body>
</html>
<html>
<script src=“js/angular.js”></script>
<body><div ng-app=“”>
<p>Name: <input type=“text” ng-model=“name”></p>
<p ng-bind=“name”></p>
</div></body>
</html>
AngularJS extends HTML with ng-directives.
The ng-app directive defines an AngularJS application.
The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.
The ng-bind directive binds application data to the HTML view.