• Overview
@angular/forms/signals

PatternValidationError

Class

An error used to indicate that a value does not match the required pattern.

API

    
      class PatternValidationError extends _NgValidationError {}
    
    

constructor

PatternValidationError
@parampatternRegExp
@paramoptionsValidationErrorOptions | undefined

kind

"pattern"

field

() => FieldState<unknown, string | number>

The field associated with this error.

message

string | undefined

Human readable error message.

[BRAND]

undefined

Brand the class to avoid Typescript structural matching

Jump to details