angular-cn/modules/angular2/test/common/forms
vsavkin 7343ef04ae feat(forms): remove controlsErrors
BREAKING CHANGE

Previously, the controlsErrors getter of ControlGroup and ControlArray returned the errors of their direct children. This was confusing because the result did not include the errors of nested children (ControlGroup -> ControlGroup -> Control). Making controlsErrors to include such errors would require inventing some custom serialization format, which applications would have to understand.

Since controlsErrors was just a convenience method, and it was causing confusing, we are removing it. If you want to get the errors of the whole form serialized into a single object, you can manually traverse the form and accumulate the errors. This way you have more control over how the errors are serialized.

Closes #5102
2015-11-06 01:47:37 +00:00
..
directives_spec.ts refactor(core): move directives, pipes, and forms into common 2015-11-05 23:00:32 +00:00
form_builder_spec.ts refactor(core): move directives, pipes, and forms into common 2015-11-05 23:00:32 +00:00
integration_spec.ts refactor(core): move directives, pipes, and forms into common 2015-11-05 23:00:32 +00:00
model_spec.ts feat(forms): remove controlsErrors 2015-11-06 01:47:37 +00:00
validators_spec.ts feat(facade): add support for async validators returning observables 2015-11-06 01:20:03 +00:00