3c1a1620e3
This commit adds support for the `static: true` flag in `ContentChild` queries. Prior to this commit, all `ContentChild` queries were resolved after change detection ran. This is a problem for backwards compatibility because View Engine also supported "static" queries which would resolve before change detection. Now if users add a `static: true` option, the query will be resolved in creation mode (before change detection runs). For example: ```ts @ContentChild(TemplateRef, {static: true}) template !: TemplateRef; ``` This feature will come in handy for components that need to create components dynamically. PR Close #28811 |
||
---|---|---|
.. | ||
BUILD.bazel | ||
change_detection_spec.ts | ||
content_spec.ts | ||
di_spec.ts | ||
exports_spec.ts | ||
inherit_definition_feature_spec.ts | ||
integration_spec.ts | ||
lifecycle_spec.ts | ||
pipe_spec.ts | ||
query_spec.ts |