MCPcopy
hub / github.com/angular/angular / max

Method max

packages/forms/src/validators.ts:209–211  ·  view source on GitHub ↗

* @description * Validator that requires the control's value to be less than or equal to the provided number. * * @usageNotes * * ### Validate against a maximum of 15 * * ```ts * const control = new FormControl(16, Validators.max(15)); * * console.log(control.errors); /

(max: number)

Source from the content-addressed store, hash-verified

207 *
208 */
209 static max(max: number): ValidatorFn {
210 return maxValidator(max);
211 }
212
213 /**
214 * @description

Callers 15

addBigIntFunction · 0.45
triggerMethod · 0.45
addBigIntFunction · 0.45
hashMethod · 0.45
interleaveFunction · 0.45
diffTextFunction · 0.45
connectSharedReferencesFunction · 0.45
getLastImportEndFunction · 0.45
listPropertyDifferencesFunction · 0.45
mockCancelIdleCallbackFunction · 0.45
swapFunction · 0.45

Calls 1

maxValidatorFunction · 0.85

Tested by

no test coverage detected