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

Class MaxValidator

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

InputInterface · 0.90
maxValidatorFunction · 0.90
toFloatFunction · 0.85

Tested by

no test coverage detected