mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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.
|
||
|---|---|---|
| .. | ||
| build | ||
| cjs-jasmine | ||
| code.angularjs.org | ||
| gulp-tasks | ||
| karma | ||
| ngc-wrapped | ||
| npm | ||
| public_api_guard | ||
| travis | ||
| tree-shaking-test | ||
| tsc-watch | ||
| tslint | ||
| validate-commit-message | ||
| check-environment.js | ||
| chromedriverpatch.js | ||
| jsconfig.json | ||
| tsconfig.json | ||
| types.d.ts | ||
| utils.inc | ||