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

Class MaxValidator

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

Source from the content-addressed store, hash-verified

227 standalone: false,
228})
229export class MaxValidator extends AbstractValidatorDirective {
230 /**
231 * @description
232 * Tracks changes to the max bound to this directive.
233 */
234 @Input() max!: string | number | null;
235 /** @internal */
236 override inputName = 'max';
237 /** @internal */
238 override normalizeInput = (input: string | number): number => toFloat(input);
239 /** @internal */
240 override createValidator = (max: number): ValidatorFn => maxValidator(max);
241}
242
243/**
244 * @description

Callers

nothing calls this directly

Calls 3

InputInterface · 0.90
maxValidatorFunction · 0.90
toFloatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…