One-way data bindings : It's pretty simple. that models update views / templates.
Two-way data bindings : here the model fills the view, and any changes in the view are automatically reflected in the model, and vice versa. eg
<input type="text" ng-model="name"/> <h1>Hello {{name}}!</h1>
So, here the value of the input field is tied to the model, that is, the "name". Whenever a name changes, it is immediately updated on the page.
think about the image, b'use can not post it: (
Model <===> DOM
trilateral data binding :
Firebase <=====> Model <=====> DOM
here, a firebase such as a database server can only update the model, not the ieUI DOM. The model can update the db server, i.e. firebase and DOM, both. therefore, the model holds power to update the interface and db server :) The model can populate the DOM, i.e. The interface is the other way around.
source share