© Venkata Keerti Kotaru 2020
Venkata Keerti KotaruAngular for Material Designhttps://doi.org/10.1007/978-1-4842-5434-9_5

5. Angular: Data Binding and Change Detection

Venkata Keerti Kotaru
(1)
Hyderabad, India
 
A markup language (like HTML) is better suited for building a view. It is declarative and easy to read. As we build web pages in an Angular application, views are built with HTML. Data and logic stay in the TypeScript classes. Traditionally, the JavaScript API (and JQuery) allows you to query and select an HTML element. The JavaScript code might read the value from the selected element or set a value to it. This becomes error prone and convoluted as the application grows in size and complexity.
Angular solves this problem with data binding. ...

Get Angular for Material Design: Leverage Angular Material and TypeScript to Build a Rich User Interface for Web Apps now with O’Reilly online learning.

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