angular-docs-cn/packages/common/test/directives
Kara Erickson a20b2f72f2 fix(ivy): process creation mode deeply before running update mode (#27744)
Prior to this commit, we had two different modes for change detection
execution for Ivy, depending on whether you called `bootstrap()` or
`renderComponent()`. In the former case, we would complete creation
mode for all components in the tree before beginning update mode for
any component. In the latter case, we would run creation mode and
update mode together for each component individually.

Maintaining code to support these two different execution orders was
unnecessarily complex, so this commit aligns the two bootstrapping
mechanisms to execute in the same order. Now creation mode always
runs for all components before update mode begins.

This change also simplifies our rendering logic so that we use
`LView` flags as the source of truth for rendering mode instead of
`rf` function arguments. This fixed some related bugs (e.g. calling
`ViewRef.detectChanges` synchronously after the view's creation
would create view nodes twice, view queries would execute twice, etc).

PR Close #27744
2018-12-19 15:10:16 -05:00
..
ng_class_spec.ts build(bazel): Turning on strictPropertyInitialization for Angular. (#24572) 2018-06-25 07:57:13 -07:00
ng_component_outlet_spec.ts fix(ivy): process creation mode deeply before running update mode (#27744) 2018-12-19 15:10:16 -05:00
ng_for_spec.ts fix(common): properly update collection reference in NgForOf (#24684) 2018-06-29 06:43:44 -07:00
ng_if_spec.ts fix(common): then and else template might be set to null (#22298) 2018-02-18 19:25:28 -08:00
ng_plural_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
ng_style_spec.ts fix(common): A null value should remove the style on IE (#21679) 2018-01-22 12:54:49 -08:00
ng_switch_spec.ts test(common): fix double instantiation in NgSwitch test (#25632) 2018-08-27 16:40:56 -04:00
ng_template_outlet_spec.ts test(ivy): run more common tests with ivy on ci (#27089) 2018-11-14 12:25:35 -08:00
non_bindable_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00