Two-way data binding "...is the automatic synchronization of data between the model and view components.." This means thatyourthe model will contain all the information, the view will display the information. Wand when the model changes, the view updates, and vice versa.
Easy and straightforward data-binding
Data bindings are done on the DOM, which allows you to easily sync data between various parts of the DOM in a very succint matter.
<body ng-app>
<span>Insert your name:</span>
<input type="text" ng-model="user.name" />
<h3>Echo: {{user.name}}</h3>
</body>
This snippet shows how the model attribute "name" is easily bound across different parts of the DOM without having to set up any extra boilerplate.
Endi Sukaj
@endi-sukaj9 years ago
Alex
@lagoo9 years ago
Two-way data binding