Search This Blog

Wednesday, June 28, 2017

AngularJS Basics

AngularJS is a javascript framework that extends the functionality of HTML elements by means of attributes.

Case 1:


ng-app means the AngularJS is active on the entire page or code between the HTML tag

Case 2:



  • ng-model links form and model data. Whatever you type in the text box of the form is updated into the model variable 'name'.
  • ng-bind will bind the variable name with div tag. The value of the variable is displayed in div tag. 
  • Double parenthesis is called expression. Whatever you type in the text box is displayed in 'p'  tag.


Case 3:

ng-conroller means the behavior of DIV tag is controlled by class languages defined in code in SCRIPT tag.

No comments: