Angular
Intro to Reactive Forms in Angular - Building a Form with Groups
  •  

Demo: Building a Form

PRO
Outline

We'll start off the section with a demo on how to group together existing FormControls with a FormGroup to represent the form itself. The documentation shows that when initializing a FormGroup, we provide it an object containing keys that map to AbstractControls, and in our case, we're using FormControls. As a bonus, I'll show how I would refactor the form initialization to modularize the code. We'll finish up by binding the newly created FormGroup to the template.

 

I finished! On to the next chapter