Intro to Reactive Forms in Angular - Simplify Form Creation

Wrap Up


In this section, we covered the FormBuilder class, which helps us cut down on boilerplate code when creating a form. In order to use it, we need to do the following:

  1. Import FormBuilder from @angular/forms
  2. Inject FormBuilder into the constructor
  3. Replace instances of new FormControl and FormGroup in the form

I finished! On to the next tutorial