mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Example:
var login = new Control("someLogin");
c.setErrors({"notUnique": true});
expect(c.valid).toEqual(false);
expect(c.errors).toEqual({"notUnique": true});
c.updateValue("newLogin");
expect(c.valid).toEqual(true);
BREAKING CHANGE:
Before:
ControlGroup.errors and ControlArray.errors returned a reduced value of their children controls' errors.
After:
ControlGroup.errors and ControlArray.errors return the errors of the group and array.
And ControlGroup.controlsErrors and ControlArray.controlsErrors return the reduce value of their children controls' errors.
Closes #4917
|
||
|---|---|---|
| .. | ||
| animate | ||
| core | ||
| http | ||
| mock | ||
| pipes | ||
| router | ||
| symbol_inspector | ||
| testing | ||
| tools | ||
| web_workers | ||
| platform.dart | ||
| platform.ts | ||
| public_api_spec.ts | ||