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

Class MinValidator

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

Source from the content-addressed store, hash-verified

285 standalone: false,
286})
287export class MinValidator extends AbstractValidatorDirective {
288 /**
289 * @description
290 * Tracks changes to the min bound to this directive.
291 */
292 @Input() min!: string | number | null;
293 /** @internal */
294 override inputName = 'min';
295 /** @internal */
296 override normalizeInput = (input: string | number): number => toFloat(input);
297 /** @internal */
298 override createValidator = (min: number): ValidatorFn => minValidator(min);
299}
300
301/**
302 * @description

Callers

nothing calls this directly

Calls 3

InputInterface · 0.90
minValidatorFunction · 0.90
toFloatFunction · 0.85

Tested by

no test coverage detected