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
Jeff Cross
8ed22ce6e7
chore: update all import paths
2015-08-25 15:33:23 -07:00
vsavkin
13b1d85058
refactor(forms): removed iterableToList
2015-07-17 10:52:23 -07:00
vsavkin
b1231593b6
fix(forms): do not reset the value of the input when it came from the view
2015-07-16 10:00:32 -07:00
gdi2290
e5405e4ba2
fix(forms): Remove cyclic dependency
...
correctly resolve Renderer by removing cyclic dependencies
Closes #2856
2015-07-07 16:25:43 -07:00
Alex Eagle
44891996b5
fix(build): add missing return types now enforced by linter
2015-06-29 15:31:41 -07:00
Tobias Bosch
ba9fecd068
refactor(render): use RenderElementRef in all renderer methods
...
BREAKING CHANGES:
- Almost all methods in `Renderer` now take a `RenderElementRef` instead
of a `ViewRef` + `boundElementIndex`.
- These methods can be called with the `ElementRef` from the app side
directly.
Closes #2706
Related to #2476
2015-06-23 14:26:34 -07:00
vsavkin
c899b0a74c
feat(element_injector): support multiple injectables with the same token
2015-06-19 16:02:56 -07:00
vsavkin
4d1ed509e3
refactor(forms): refactored forms to user Query to get html validators
2015-06-19 16:02:43 -07:00
Martin Probst
c7e48350d3
chore: kill ListWrapper.create() and .push().
...
These wrappers are not natively understood by
ts2dart. Removing them will improve Dart2JS
compilation due to fewer megamorphic calls to List
functions.
It also makes Angular code more succinct and
improves type safety in Angular due to better type
inference of the Array component type.
This change exposed several bugs in Angular.
2015-06-17 16:21:55 -07:00
vsavkin
f1541e65b3
fix(forms): fixed the handling of the select element
2015-06-15 13:16:41 -07:00
vsavkin
4fe919335c
refactor(forms): made directive names consistent
2015-06-12 09:45:55 -07:00
vsavkin
96cadcc29e
refactor(forms): handle dirty/pristine explicitly
2015-06-03 14:43:46 -07:00
vsavkin
ec3a78289f
feat(forms): added touched and untouched to Control
2015-06-02 17:32:41 -07:00
vsavkin
652ed0cf6d
feat(form): implemented an imperative way of updating the view by updating the value of a control
2015-06-02 16:24:07 -07:00
vsavkin
559f54e92b
feat(forms): added ng-model
2015-06-02 16:24:07 -07:00
vsavkin
a9d6fd9afa
feat(forms): implemented template-driven forms
2015-05-30 11:56:00 -07:00