• 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(maxLength: number, options?: ValidationErrorOptions | undefined): MaxLengthValidationError;  readonly kind: "maxLength";  readonly override field: FieldTree<unknown>;  readonly override message?: string | undefined;}
    
    

constructor

MaxLengthValidationError
@parammaxLengthnumber
@paramoptionsValidationErrorOptions | undefined

kind

"maxLength"

field

FieldTree<unknown>

The field associated with this error.

message

string | undefined

Human readable error message.

Jump to details