angular-docs-cn/modules
vsavkin ed4826b08c feat(forms): Implement a way to manually set errors on a control
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
2015-10-27 19:31:25 +00:00
..
angular1_router docs(chore): make styles consistent for API doc headings 2015-10-19 14:58:22 +00:00
angular2 feat(forms): Implement a way to manually set errors on a control 2015-10-27 19:31:25 +00:00
angular2_material fix(testing): let DOM adapter dictate XHR implementation for tests 2015-10-15 12:12:27 -07:00
benchmarks refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
benchmarks_external refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
benchpress chore: rename modules/examples to modules/playground 2015-10-18 11:48:43 +00:00
playground fix(router): respect LocationStrategy when constructing hrefs in links 2015-10-27 10:45:49 +00:00
upgrade docs(chore): make styles consistent for API doc headings 2015-10-19 14:58:22 +00:00