angular/packages/core/test/render3
Alex Rickabaugh 6472661ae8 refactor(ivy): avoid circular dep with query/di/instructions (#21430)
To prepare for pending ngForOf work, the dep from instructions -> query
should be broken. This will enable a dep from di -> instructions while
avoiding a di -> instructions -> query -> di cycle.

Analyzing this cycle also uncovered another problem: the implementation
of query() breaks tree-shaking through a hard dependency on DI concepts
of TemplateRef, ElementRef, ViewContainerRef. This is fundamentally due
to how query() can query for those values without any configuration.

Instead, this fix introduces the concept by employing the strategy
pattern, and redefining QueryReadType to pass a function which will
return one of the above values. This strategy is then used for 'read'
instead of an enum in cases where special values should be read from
the DI system.

PR Close #21430
2018-01-23 12:54:39 -08:00
..
basic_perf.ts refactor(ivy): remove type from DirectiveDef (#21374) 2018-01-11 07:02:18 -08:00
BUILD.bazel build: Remove angular_src nested workspace (#21096) 2018-01-19 10:17:37 -08:00
compiler_canonical_spec.ts fix(ivy): update the compiler specification (#21656) 2018-01-19 13:23:54 -08:00
component_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
content_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
control_flow_spec.ts refactor(ivy): remove type from DirectiveDef (#21374) 2018-01-11 07:02:18 -08:00
di_spec.ts refactor(ivy): avoid circular dep with query/di/instructions (#21430) 2018-01-23 12:54:39 -08:00
directive_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
domino.d.ts feat(core): Moving Renderer3 into @angular/core (#20855) 2017-12-21 21:40:58 -08:00
exports_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
imported_renderer2.ts test(core): animation renderer factory in render3 (#20855) 2017-12-21 21:40:58 -08:00
integration_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
lifecycle_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
listeners_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
load_domino.ts test(core): properly stringify HTML elements in render3 tests (#21279) 2018-01-05 14:25:40 -08:00
node_selector_matcher_spec.ts refactor(ivy): add TView and TContainer (#21463) 2018-01-16 10:51:55 -08:00
outputs_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
properties_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
query_spec.ts refactor(ivy): avoid circular dep with query/di/instructions (#21430) 2018-01-23 12:54:39 -08:00
render_util.ts refactor(ivy): remove type from DirectiveDef (#21374) 2018-01-11 07:02:18 -08:00
renderer_factory_spec.ts refactor(ivy): remove unnecessary D instruction (#21484) 2018-01-19 15:23:17 -08:00
util_spec.ts feat(core): Moving Renderer3 into @angular/core (#20855) 2017-12-21 21:40:58 -08:00