class MaxLengthValidator implements Validator, maxlength : string ngOnChanges(changes: SimpleChanges) : void validate(c: AbstractControl) : ValidationErrors| }
[maxlength][formControlName]
[maxlength][formControl]
[maxlength][ngModel]
A directive which installs the MaxLengthValidator
for any formControlName,
formControl,
or control with
ngModelthat also has a
maxlength` attribute.
maxlength : string
ngOnChanges(changes: SimpleChanges) : void
validate(c: AbstractControl) : ValidationErrors|
exported from forms/index, defined in forms/src/directives/validators.ts
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/forms/index/MaxLengthValidator-directive.html