Link Search Menu Expand Document

One-Way-Binding vs Two-Way-Binding

See Step 4 and Step 5 of the Data Binding Tutorial to see the practical difference between the two binding modes!

  • One-way binding means a binding from the model to the view. Any value changes in the model update all corresponding bindings and the view.
  • Two-way binding means a binding from the model to the view and from the view to the model. Any changes in the model or the view fire events that automatically trigger updates of all corresponding bindings and both the view and the model.
  • Two-way binding is currently only supported for property bindings.
  • When using formatter functions, the binding is automatically switched to “one-way”. So you can’t use a formatter function for “two-way” scenarios, but you can use Data Types.