How To Use Ng-model And Ng-directive In AngularJs

ng-model directive
 
ng-model directive is used to bind input from view to model.
 
ng-bind directive

ng-bind directive is used to replace value in text area
 
Example 
  1. <!DOCTYPE html>  
  2. <html>  
  3. <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>  
  4. <body>  
  5.   
  6. <div ng-app>  
  7.    
  8. <h3>Enter a name</h3>  
  9. <p>Yourname: <input type="text" ng-model="yourname"></p>  
  10. <p ng-bind="yourname"></p>  
  11.   
  12. </div>  
  13.   
  14. </body>  
  15. </html>