AngularJS > Components

Data Binding in AngularJS

What is Data Binding in AngularJS

Data binding in AngularJS is automatic updation of data between Model (the source of data) and View. So when the Model changes, the view is automatically updated or when the View changes, the model is automatically updated.

AngularJS supports two way binding as against typical binding that only supports one way binding (data source to the view not vice versa).

In AngularJS, the AngularJS templates (contains HTML and AngularJS markup and directives) is complied to the live view. Any changes in the view are immediately reflected to the Model and any changes in the Model immediately propagate to the View.

 Views: 2952 | Post Order: 11

Write for us