11 Using Data Bindings
This chapter covers
- Understanding how to apply a data binding
- Using data bindings to set HTML element attributes
- Using data bindings to assign elements to classes
- Using data bindings to set element style properties
- Using the string interpolation binding
The previous chapter used some simple data bindings to explain how Angular detects changes and updates HTML content. In this chapter, I describe the basic data bindings that Angular provides in-depth and demonstrate how they can be used to produce dynamic content. In later chapters, I describe more advanced data bindings and explain how to extend the Angular binding system with custom features. Table 11.1 puts data bindings in context.
Table 11.1. Putting data bindings ...
Get Pro Angular 16 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.