A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

What is Data Binding in Angularjs ?

Data Binding:


  • It is a very useful feature in development.
  • It works between the model and view.
  • Two types of data-binding.
  • One way data-binding.
  • Two-way data-binding.
  • One-Time data binding

One way data-binding



  • Data moves from scope to view.
  • If any modification happens in scope immediately reflected in the view.
  • If the modification will happen in view no reflection in scope.
  • This System binds data in only one direction.

Two-way data-binding



  • Data moves from scope to view and vice versa.
  • If any modification happens in scope immediately reflected in the view. 
  • If the modification will happen in view immediately reflection in scope. 
  • This System binds data in both directions.

One-Time data-binding




  • Data moves from scope to view.
  • New modification will never be sent again to the view. 
  • Data will travel only one time from scope to view.
  • In the view, no propagation happens (back to scope) for any data changes.

LEARN TUTORIALS

.

.