Validation Styles

  • Angular will automatically attach styles to a form element depending on its state
  • For instance, if it is in a valid state then ng-valid is attached
  • If the element is in an invalid state, then ng-invalid is attached
  • There are additional styles such as ng-pristine and ng-untouched