W3cubDocs

/Angular

minLengthError

API

function minLengthError(
  minLength: number,
  options: WithFieldTree<ValidationErrorOptions>,
): MinLengthValidationError;
function minLengthError(
  minLength: number,
  options?: ValidationErrorOptions | undefined,
): WithoutFieldTree<MinLengthValidationError>;
function minLengthError(minLength: number, options: WithFieldTree<ValidationErrorOptions>): MinLengthValidationError;

Create a minLength error associated with the target field

@paramminLengthnumber

The minLength constraint

@paramoptionsWithFieldTree<ValidationErrorOptions>

The validation error options

function minLengthError(minLength: number, options?: ValidationErrorOptions | undefined): WithoutFieldTree<MinLengthValidationError>;

Create a minLength error

@paramminLengthnumber

The minLength constraint

@paramoptionsValidationErrorOptions | undefined

The optional validation error options

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/signals/minLengthError