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

Method maxLength

packages/forms/src/validators.ts:365–367  ·  view source on GitHub ↗

* @description * Validator that requires the number of items in the control's value to be less than or equal * to the provided maximum length. This validator is also provided by default if you use * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used

(maxLength: number)

Source from the content-addressed store, hash-verified

363 *
364 */
365 static maxLength(maxLength: number): ValidatorFn {
366 return maxLengthValidator(maxLength);
367 }
368
369 /**
370 * @description

Calls 1

maxLengthValidatorFunction · 0.85

Tested by

no test coverage detected