Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is declarative data binding?

Tags:

javascript

All modern JavaScript frameworks seem to agree upon declarative data binding, and I've noticed it being talked about recently. Can somebody please explain it to me in simple terms?

like image 225
izolate Avatar asked Jun 23 '13 20:06

izolate


People also ask

What is data binding explain its types?

What is data binding? Data binding is a process that creates a connection between the application's UI and the data. When the data changes its value, the UI elements that are bound to the data will also change.

How many types of data binding are there?

As mentioned earlier, one-way data binding in Angular can be of three types i.e Interpolation, Property binding, and Event binding.

What are the different of data binding and simple data binding?

You also learned that there are two types of data binding as in the following: Simple Data binding: the process of binding a control such as a TextBox or a label. Complex data binding: the process of binding a control such as ComboBox, DataGridView, or ListBox.


1 Answers

Basically it binds javascript variables to fields

Some pseudo-code

<input type="checkbox" data-bind="{ personObj.hasStuff }" />
like image 195
BrunoLM Avatar answered Sep 29 '22 15:09

BrunoLM