This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

NgControlStatus

Directive automatically applied to Angular form controls that sets CSS classes based on control status. The following classes are applied as the properties become true:

See more...

NgModules

Selectors

Description

  • ng-valid
  • ng-invalid
  • ng-pending
  • ng-pristine
  • ng-dirty
  • ng-untouched
  • ng-touched