angular-docs-cn/packages/forms/test
Kara Erickson 1a0ee18d62 fix(ivy): run pre-order hooks in injection order (#34026)
This commit fixes a compatibility bug where pre-order lifecycle
hooks (onInit, doCheck, OnChanges) for directives on the same
host node were executed based on the order the directives were
matched, rather than the order the directives were instantiated
(i.e. injection order).

This discrepancy can cause issues with forms, where it is common
to inject NgControl and try to extract its control property in
ngOnInit. As the NgControl directive is injected, it should be
instantiated before the control value accessor directive (and
thus its hooks should run first). This ensures that the NgControl
ngOnInit can set up the form control before the ngOnInit
for the control value accessor tries to access it.

Closes #32522

PR Close #34026
2019-11-25 18:41:22 -05:00
..
BUILD.bazel build: ts_web_test & ts_web_test_suite deprecated in favor of karma_web_test & karma_web_test_suite (#33802) 2019-11-13 13:33:38 -08:00
directives_spec.ts build: upgrade jasmine (and related typings) to latest version (#19904) 2018-07-06 13:48:02 -07:00
form_array_spec.ts build: TypeScript 3.5 upgrade (#31615) 2019-07-25 17:05:23 -07:00
form_builder_spec.ts feat(forms): add updateOn option to FormBuilder (#24599) 2018-11-01 15:31:11 -07:00
form_control_spec.ts build: TypeScript 3.5 upgrade (#31615) 2019-07-25 17:05:23 -07:00
form_group_spec.ts build: TypeScript 3.5 upgrade (#31615) 2019-07-25 17:05:23 -07:00
reactive_integration_spec.ts refactor: Move `dom_adapter.ts` to `@angular/common` (#32154) 2019-08-29 21:51:56 -07:00
spies.ts fix(forms): improve error message for invalid value accessors (#22731) 2018-04-04 08:20:55 -07:00
template_integration_spec.ts fix(ivy): shadow all DOM properties in `DebugElement.properties` (#33781) 2019-11-18 15:49:22 -08:00
validators_spec.ts refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
value_accessor_integration_spec.ts fix(ivy): run pre-order hooks in injection order (#34026) 2019-11-25 18:41:22 -05:00