angular-docs-cn/packages/forms/test
Kara ff5c58be6b feat(forms): add default updateOn values for groups and arrays (#18536)
This commit adds support for setting default `updateOn` values
in `FormGroups` and `FormArrays`. If you set `updateOn` to
’blur’` at the group level, all child controls will default to `’blur’`,
unless the child has explicitly specified a different `updateOn` value.

```
const c = new FormGroup({
   one: new FormControl()
}, {updateOn: blur});
```

 It's worth noting that parent groups will always update their value and
validity immediately upon value/validity updates from children. In other
words, if a group is set to update on blur and its children are individually
set to update on change, the group will still update on change with its
children; its default value will simply not be used.
2017-08-09 15:41:53 -07:00
..
directives_spec.ts fix(forms): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
form_array_spec.ts feat(forms): add options arg to abstract controls 2017-07-31 11:29:32 -07:00
form_builder_spec.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
form_control_spec.ts feat(forms): add default updateOn values for groups and arrays (#18536) 2017-08-09 15:41:53 -07:00
form_group_spec.ts refactor(forms): compile forms cleanly with TypeScript 2.4 (#18462) 2017-08-02 16:29:31 -07:00
reactive_integration_spec.ts feat(forms): add default updateOn values for groups and arrays (#18536) 2017-08-09 15:41:53 -07:00
spies.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
template_integration_spec.ts refactor(forms): move value accessor tests into own spec (#18356) 2017-07-26 17:55:37 -05:00
validators_spec.ts fix(forms): fix min and max validator behavior on non-numbers 2017-06-08 13:59:17 -07:00
value_accessor_integration_spec.ts build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00