Data binding
Data binding is the synchronization process between the model and the view. Model variable is bound to a HTML element. Model and View can both change and display the value of the variable. In general, more than one HTML element is bound to the same variable.
There are two types of data binding.
- One way
- Two way (Default)
Let’s take an example.
I am going to show one & two way data binding.
HTML Part
Model