MCPcopy Create free account
hub / github.com/angular/angular / MinLengthValidator

Class MinLengthValidator

packages/forms/src/directives/validators.ts:576–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574 standalone: false,
575})
576export class MinLengthValidator extends AbstractValidatorDirective {
577 /**
578 * @description
579 * Tracks changes to the minimum length bound to this directive.
580 */
581 @Input() minlength!: string | number | null;
582
583 /** @internal */
584 override inputName = 'minlength';
585
586 /** @internal */
587 override normalizeInput = (input: string | number): number => toInteger(input);
588
589 /** @internal */
590 override createValidator = (minlength: number): ValidatorFn => minLengthValidator(minlength);
591}
592
593/**
594 * @description

Callers

nothing calls this directly

Calls 3

InputInterface · 0.90
minLengthValidatorFunction · 0.90
toIntegerFunction · 0.85

Tested by

no test coverage detected