MaxLengthValidator

export directive MaxLengthValidator

exported from angular2/common defined in angular2/src/common/forms/directives/validators.ts (line 84)

A directive which installs the MaxLengthValidator for any ngControl,ngFormControl, or control withngModelthat also has amaxlength` attribute.

Selectors

[maxlength][ngControl]

[maxlength][ngFormControl]

[maxlength][ngModel]

Constructor

constructor(maxLength: string)

Not Yet Documented

Members

validate(c: Control) : {[key: string]: any}

Not Yet Documented