angular-cn/modules/angular2/test/forms
vsavkin 79994b2abf refactor(forms): use multibindings instead of query to get a list of validators
BREAKING CHANGE

Before:

@Directive({selector: '[credit-card]', bindings: [new Binding(NgValidator, {toAlias: forwardRef(() => CreditCardValidator)})]})
class CreditCardValidator {
  get validator() { return CreditCardValidator.validate; }
  static validate(c): StringMap<string, boolean> {...}
}

After:

function creditCardValidator(c): StringMap<string, boolean> {...}
@Directive({selector: '[credit-card]', bindings: [new Binding(NG_VALIDATORS, {toValue: creditCardValidator, multi: true})]})
class CreditCardValidator {}
2015-09-03 15:18:18 +00:00
..
directives_spec.ts refactor(forms): use multibindings instead of query to get a list of validators 2015-09-03 15:18:18 +00:00
form_builder_spec.ts chore(forms): moved tests/forms to typescript 2015-05-22 14:44:57 -07:00
integration_spec.ts refactor(test_lib): BrowserDetection util 2015-08-28 11:41:17 +02:00
model_spec.ts chore(LifecycleEvent): change to PascalCase / rename 2015-08-27 22:32:21 -07:00
validators_spec.ts refactor(forms): use multibindings instead of query to get a list of validators 2015-09-03 15:18:18 +00:00