Angular
Intro to Reactive Forms in Angular - FormControl Foundations
  •  

FormControl Basics

Outline

FormControl extends from a base class called AbstractControl, which has 3 children known as the "building blocks" of @angular/forms. These 3 children are: FormControl, FormGroup, and FormArray. These controls have common methods and properties, some of which include tracking current value, validation status, and resetting the state. Both FormGroup and FormArray aggregate other controls, more commonly FormControls.

That's why we're going to learn about FormControl first. FormControl gives us the power to track value of a form element, updating it as needed, and track validation state as well.

 

I finished! On to the next chapter