mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 {}
|
||
|---|---|---|
| .. | ||
| benchmark/transform | ||
| compiler | ||
| core | ||
| forms | ||
| http | ||
| mock | ||
| pipes | ||
| router | ||
| test_lib | ||
| web_workers | ||
| platform.dart | ||
| platform.ts | ||