Class Overview
class MaxLengthValidator implements Validator,
maxlength
: string
ngOnChanges
(changes: SimpleChanges) : void
validate
(c: AbstractControl) : ValidationErrors|
}
Selectors
[maxlength][formControlName]
[maxlength][formControl]
[maxlength][ngModel]
Class Description
A directive which installs the MaxLengthValidator
for any formControlName,
formControl,
or control with
ngModelthat also has a
maxlength` attribute.
Class Details
exported from forms/index, defined in forms/src/directives/validators.ts