Skip to content

FormControl

FormControl tracks the value and validation state of an individual form field.

  • 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); // false

FormControl is the building block of reactive forms.”