W3cubDocs

/Angular

FormControlStatus

type-alias

A form can have several different statuses. Each possible status is returned as a string literal.

See more...

type FormControlStatus = 'VALID' | 'INVALID' | 'PENDING' | 'DISABLED';

Description

  • VALID: Reports that a FormControl is valid, meaning that no errors exist in the input value.
  • INVALID: Reports that a FormControl is invalid, meaning that an error exists in the input value.
  • PENDING: Reports that a FormControl is pending, meaning that that async validation is occurring and errors are not yet available for the input value.
  • DISABLED: Reports that a FormControl is disabled, meaning that the control is exempt from ancestor calculations of validity or value.

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/forms/FormControlStatus