Connecting the Model to the View
Explore how to connect a central data model to the view in Angular reactive forms. Understand how reactive forms enforce validation and prevent errors when form controls don't match the model. This lesson helps you build reliable, validated forms using a class-based structure.
We'll cover the following...
We'll cover the following...
Connecting forms to views
At a certain abstract level, any form has a data model attached to it, describing the properties of the form and the values they contain. For most forms, the parts of this data model are scattered around the view, several JavaScript files, and sometimes even partially stored on the backend.
Making changes to the form involves checking for conflicts at all layers.
Reactive forms instead use the concept of a central, class-based ...