mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Allow ControlGroups and ControlArrays to contain errors from their level, and errors from their children. [Design Doc](https://docs.google.com/document/d/1EnJ3-_iFpVKFz1ifN1LkXSGQ7h3A72OQGry2g8eo7IA/edit?pli=1#heading=h.j53rt81eegm4) BREAKING CHANGE: errors format has changed from validators. Now errors from a control or an array's children are prefixed with 'controls' while errors from the object itself are left at the root level. Example: Given a Control group as follows: var group = new ControlGroup({ login: new Control("", required), password: new Control("", required), passwordConfirm: new Control("", required) }); Before: group.errors { login: {required: true}, password: {required: true}, passwordConfirm: {required: true}, } After: group.errors { controls: { login: {required: true}, password: {required: true}, passwordConfirm: {required: true}, } } |
||
|---|---|---|
| .. | ||
| change_detection | ||
| compiler | ||
| debug | ||
| di | ||
| directives | ||
| dom | ||
| facade | ||
| forms | ||
| life_cycle | ||
| linker | ||
| metadata | ||
| pipes | ||
| profile | ||
| reflection | ||
| render | ||
| services | ||
| testability | ||
| util | ||
| zone | ||
| application_spec.ts | ||
| directive_lifecycle_integration_spec.ts | ||
| forward_ref_integration_spec.dart | ||
| forward_ref_integration_spec.ts | ||
| spies.dart | ||
| spies.ts | ||