- Data binding binds AngularJS expressions with AngularJS data.
- {{ X }} is bound with ng-model=”X”.
- In the following example:
- {{favc}} is bound with ng-model=”favc”.
- Notice that there is a default value id defined using ng-init=”favc=’Pink’. Try to modify the default color value.
- Also, notice that ng-app=”” is defind for the main div.