angular-cn/modules/angular2/test/core/forms
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
..
directives_spec.ts fix(forms): handle control change in NgFormControl 2015-10-26 18:15:58 +00:00
form_builder_spec.ts feat(forms): Implement a way to manually set errors on a control 2015-10-27 19:31:25 +00:00
integration_spec.ts fix(default_value_accessor): support custom input elements that fire custom change events. 2015-10-26 14:33:47 +00:00
model_spec.ts feat(forms): Implement a way to manually set errors on a control 2015-10-27 19:31:25 +00:00
validators_spec.ts feat(forms): Implement a way to manually set errors on a control 2015-10-27 19:31:25 +00:00