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:
Post a Comment