diff --git a/modules/playground/src/template_driven_forms/index.ts b/modules/playground/src/template_driven_forms/index.ts index f1d03f2007..8a61942382 100644 --- a/modules/playground/src/template_driven_forms/index.ts +++ b/modules/playground/src/template_driven_forms/index.ts @@ -42,7 +42,7 @@ function creditCardValidator(c): {[key: string]: boolean} { const creditCardValidatorBinding = CONST_EXPR(new Provider(NG_VALIDATORS, {useValue: creditCardValidator, multi: true})); -@Directive({selector: '[credit-card]', bindings: [creditCardValidatorBinding]}) +@Directive({selector: '[credit-card]', providers: [creditCardValidatorBinding]}) class CreditCardValidator { }