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 |
What is use of JavaScript and jquery?
What does double mean in javascript?
how can we retrieve value from one database server and store them another database server using sql server code
What does the "Access is Denied" IE error mean?
What are the types of variables in javascript?
What does the instanceof operator do?
What is arguments object in JavaScript?
What is the use of blur function in JavaScript?
What is output of “20” + 20? In javascript?
What is the difference between window and document in Javascript?
What is the function of delete operator?
Explain the terms synchronous and asynchronous code?