{ "id": "api/forms/NgControlStatus", "title": "NgControlStatus", "contents": "\n\n
\n
\n
\n \n API > @angular/forms\n
\n \n
\n \n
\n

NgControlStatuslink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Directive automatically applied to Angular form controls that sets CSS classes\nbased on control status.

\n\n \n
\n \n \n \n \n\n

NgModuleslink

\n\n\n\n \n
\n

Selectorslink

\n \n \n \n
\n\n\n\n \n\n\n\n\n\n \n\n\n \n
\n

Descriptionlink

\n \n

CSS classes appliedlink

\n

The following classes are applied as the properties become true:

\n
    \n
  • ng-valid
  • \n
  • ng-invalid
  • \n
  • ng-pending
  • \n
  • ng-pristine
  • \n
  • ng-dirty
  • \n
  • ng-untouched
  • \n
  • ng-touched
  • \n
\n\n
\n \n\n \n\n \n\n \n\n \n \n \n\n
\n
\n\n\n" }