angular-docs-cn/modules/angular2/src
Ted Sander 28d88c5b12 feat(validators): Allow errors at both the group/array level or their children
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},
  }
}
2015-10-26 11:48:32 -07:00
..
animate chore(typings): remove StringMap 2015-10-03 01:09:42 +00:00
core feat(validators): Allow errors at both the group/array level or their children 2015-10-26 11:48:32 -07:00
http docs(chore): make styles consistent for API doc headings 2015-10-19 14:58:22 +00:00
mock fix(router): properly read and serialize query params 2015-10-13 12:06:22 -07:00
router docs(typo): fix invalid TypeScript synatx in example 2015-10-23 21:03:58 +00:00
testing refactor(dart): Format Dart code 2015-10-20 17:39:37 +00:00
tools refactor(dart): Format Dart code 2015-10-20 17:39:37 +00:00
transform/template_compiler refactor(core): adjust imports for rename angular2/src/compiler -> angular2/src/core/compiler 2015-10-02 08:59:43 -07:00
web_workers fix(WebWorker): Serialize scroll events 2015-10-23 20:26:29 +00:00