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 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.