FormControl
Introduction
Section titled “Introduction”FormControl tracks the value and validation state of an individual form field.
States
Section titled “States”- valid/invalid: Passes validators?
- pristine/dirty: Has user interacted?
- touched/untouched: Has user blurred?
- pending: Async validator running?
const email = new FormControl('', [Validators.required, Validators.email]);console.log(email.value); // ''console.log(email.valid); // falseSummary
Section titled “Summary”FormControl is the building block of reactive forms.”