angular-cn/packages/forms/test
Kara Erickson 1cfa79ca4e feat(forms): add updateOn support to ngModelOptions
This commit introduces a new option to template-driven forms that
improves performance by delaying form control updates until the
"blur" or "submit" event.  To use it, set the `updateOn` property
in `ngModelOptions`.

```html
<input ngModel [ngModelOptions]="{updateOn: blur}">
```

Like in AngularJS, setting `updateOn` to `blur` or `submit` will
delay the update of the value as well as the validation status.
Updating value and validity together keeps the system easy to reason
about, as the two will always be in sync.  It's also worth noting
that the value/validation pipeline does still run when the form is
initialized (in order to support initial values).

Upcoming PRs will address:

* Support for setting group-level `updateOn` in template-driven forms
* Option for skipping initial validation run or more global error
display configuration
* Better support of reactive validation strategies

See more context in #18408, #18514, and the [design doc](https://docs.google.com/document/d/1dlJjRXYeuHRygryK0XoFrZNqW86jH4wobftCFyYa1PA/edit#heading=h.r6gn0i8f19wz).
2017-08-15 16:28:52 -07:00
..
directives_spec.ts feat(forms): add status to `AbstractControlDirective` 2017-08-15 14:43:28 -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 updateOn support to ngModelOptions 2017-08-15 16:28:52 -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 feat(forms): add updateOn support to ngModelOptions 2017-08-15 16:28:52 -07: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