one way binding vs two way binding
React is one way binding (Uni directional) and its used for View layer
Angular is two way binding and follows MVC pattern
One-way binding (React)
Angular is two way binding and follows MVC pattern
One-way binding (React)
- When properties in the model get updated, so does the UI.
- Only one watcher exist
Virtual dom
Two-way binding (Angular js)
- When properties in the model get updated, so does the UI.
- When UI elements get updated, the changes get propagated back to the model.
- When angular sets up databinding two "watchers" exist
Comments
Post a Comment