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)


  1. When properties in the model get updated, so does the UI.
  2. Only one watcher exist



Two-way binding (Angular js)

  1. When properties in the model get updated, so does the UI.
  2. When UI elements get updated, the changes get propagated back to the model.
  3. When angular sets up databinding two "watchers" exist

Comments

Popular posts from this blog

Proxy setting in java

Using logstash to import csv json files into elasticsearch

Kibana 4 Installation and Run as a service in ubuntu