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

Class MaxLengthValidator

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

Source from the content-addressed store, hash-verified

622 standalone: false,
623})
624export class MaxLengthValidator extends AbstractValidatorDirective {
625 /**
626 * @description
627 * Tracks changes to the maximum length bound to this directive.
628 */
629 @Input() maxlength!: string | number | null;
630
631 /** @internal */
632 override inputName = 'maxlength';
633
634 /** @internal */
635 override normalizeInput = (input: string | number): number => toInteger(input);
636
637 /** @internal */
638 override createValidator = (maxlength: number): ValidatorFn => maxLengthValidator(maxlength);
639}
640
641/**
642 * @description

Callers

nothing calls this directly

Calls 3

InputInterface · 0.90
maxLengthValidatorFunction · 0.90
toIntegerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…