1.

Data Binding

Answer»

Data Binding
In angularJS data binding is the synchronization between the Model

and the View. In most of the cases in AngularJS applications have a

data model. Data Model is COLLECTION of data AVAILABLE for the

application.

HTML View
HTML container where we display the AngularJS application is called view. ANd this view has access to the model. And we have some more option to displaying model data in the view. We can use ng-bind directive which help us to bind the innerHTML of the element to the specified model property. We can use ng-model directive on HTML CONTROLS to bind the model to the view.

Two-way Binding
As we knows that AngularJS is the SYNC between model and view. When data in model changes the view reflects the changes. And when data in view changes the model is also updated as well. This happen very quick time and automatically. And this will make sure that model and the view is updated at all times.



Discussion

No Comment Found