Steps to create AngularJS Application
Step 1 − Load framework
Being a pure JavaScript framework, It can be added using <Script> tag.
Step 2 − Define AngularJS Application using ng-app directive
<script src = "http://javatechnologicenter.com/ajax/libs/angularjs/1.3.14/angular.min.js"> </script>
<div ng-app = ""> ...
Step 3 − Define a model name using ng-model directive
</div>
<p>Enter your Name: <input type = "text" ng-model = "name"></p>
Step 4 − Bind the value of above model defined using ng-bind directive.
<p>Hello <span ng-bind = "name"></span>!
|