backbone.js - can someone explain in simple words what data-binding on javascript does? -


I'm totally new to this, and I do not think it really does not understand what it does, its Even after research. I have just started learning Backbongas a few days ago, its third party library called epoxy, people talk about it and it caught my attention. It is a live example that shows that they can change as a change but I still have some questions left.

1- Can other clients see that the variables also change? Let me change a public image title, does it look live from my side?

2- As far as I can understand that this variable can communicate with the same feature on the database, is it correct?

^ If these two arguments are not applicable, what is the use of using data binding? Data binding is a broad term, it generally applies to the development of software:

is a data binding process that establishes a connection between application UI (user interface) and business logic. If settings and notifications are set correctly, then the changes reflect the changes in the form of data, it may also mean that when UI changes, the underlying data will reflect that change.

Source:

  1. No Backbone Runs on Client is applicable to the Your view of the data binding page.
  2. I do not understand what you mean in the variable, Epoxy binds to two-way data, and provides extensions to manage views and models, but backbone by default Does not interface the database, it is up to you to set up.

The advantage of two-way data binding is that when the model changes and vice versa automatically updates in the form of a view, unlike the one-way data binding where you can update yourself Have to handle.

This provides two-way binding data outside the box and it is very easy to get started. When you feel comfortable with the concept and how it works, then you can see another objective on the epoxy.


Comments