MCPcopy Index your code
hub / github.com/angular/angular / MinLengthValidator

Class MinLengthValidator

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

InputInterface · 0.90
minLengthValidatorFunction · 0.90
toIntegerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…