What are two-way data binding and one-way data flow, and how are they different?



What are two-way data binding and one-way data flow, and how are they different?..

Answer / Madhu Sonker

Two-way data binding is a mechanism that automatically synchronizes the UI (view) and a model in JavaScript. Any changes made to either the view or the model are immediately reflected in both. An example of this is AngularJS's ngModel directive. One-way data flow, on the other hand, means that the data flows from one direction only - typically from the model to the view. Changes in the view have no effect on the model. React.js uses a one-way data flow approach with the Virtual DOM.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is use of JavaScript and jquery?

1 Answers   MindCracker,


What does double mean in javascript?

1 Answers  


how can we retrieve value from one database server and store them another database server using sql server code

1 Answers   HP,


What does the "Access is Denied" IE error mean?

1 Answers  


What are the types of variables in javascript?

1 Answers  


What does the instanceof operator do?

1 Answers  


What is arguments object in JavaScript?

1 Answers  


What is the use of blur function in JavaScript?

1 Answers  


What is output of “20” + 20? In javascript?

1 Answers  


What is the difference between window and document in Javascript?

1 Answers  


What is the function of delete operator?

1 Answers  


Explain the terms synchronous and asynchronous code?

1 Answers  


Categories