@angular/forms

PatternValidator

directive

A directive that adds regex pattern validation to controls marked with the pattern attribute. The regex must match the entire control value. The directive is provided with the NG_VALIDATORS multi-provider list.

  
    class PatternValidator extends AbstractValidatorDirective {}
  
  
Jump to details