• Overview
@angular/forms/signals

MaxLengthValidationError

Class

An error used to indicate that a value is longer than the maximum allowed length.

API

    
      class MaxLengthValidationError extends _NgValidationError {}
    
    

constructor

MaxLengthValidationError
@parammaxLengthnumber
@paramoptionsValidationErrorOptions | undefined

kind

"maxLength"

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