NgControlStatus

From Get docs
< @angular/formsAngular/docs/11/api/forms/ngcontrolstatus


NgControlStatus

directive

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

Exported from

Selectors

  • [formControlName]
  • [ngModel]
  • [formControl]

Description

CSS classes applied

The following classes are applied as the properties become true:

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


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