Chapter 16Data Binding

In programming, data binding is the automatic synchronization of data is between a program’s data layer and the associated view layer. Think back to some of the database code in this book. We would execute a query in the database, collect the result in a variable, and then send the JSON to the requesting client. If we take this one more logical step, that JSON would be used by the display layer to show the database results to the user. This can be thought of as one-way data binding; the data from the database is bound to the view we display to the user. For our purposes, our application is going to be a web page and the view is going to be HTML.

One of the marquee features of Angular is the built-in two-way data binding ...

Get Full Stack JavaScript Development With MEAN now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.