Two-way data binding

We already mentioned it a number of times, as it is one of the most convenient and widely known features of Angular 2, as well as many other reactive frameworks out there. Nonetheless, before going further, let's make sure we know what we're talking about.

Two-way data binding, also known as two-way binding, means that whenever the data model changes, the UI changes accordingly and vice versa. To be more specific:

  • Whenever the model is updated, the changes are immediately reflected to the views implementing it.
  • Whenever the view is updated, the changes are immediately reflected in the underlying model.

From a practical development perspective, two-way data binding will help us a lot because we won't have to manually synchronize ...

Get ASP.NET Core: Cloud-ready, Enterprise Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.