NG_VALIDATORS: OpaqueToken

export NG_VALIDATORS : OpaqueToken

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

Providers for validators to be used for Controls in a form.

Provide this using multi: true to add validators.

Example

bootstrap(MyApp, [new Provider(NG_VALIDATORS, {useValue: myValidator, multi: true})]);