angular-cn/packages/core/test/render3/styling
Kara Erickson a4638d5a81 fix(ivy): support static ViewChild queries (#28811)
This commit adds support for the `static: true` flag in
`ViewChild` queries. Prior to this commit, all `ViewChild`
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
@ViewChild(TemplateRef, {static: true}) template !: TemplateRef;
```

This feature will come in handy for components that need
to create components dynamically.

PR Close #28811
2019-02-19 15:29:00 -08:00
..
class_and_style_bindings_spec.ts fix(ivy): support schemas at runtime (#28637) 2019-02-14 19:31:51 +00:00
core_player_handler_spec.ts refactor(ivy): always use styling helper methods when comparing values (#26149) 2018-10-01 09:35:22 -07:00
mock_player.ts fix(ivy): merge static style rendering across elements, directives and components (#27661) 2018-12-21 18:14:44 -05:00
players_spec.ts fix(ivy): support static ViewChild queries (#28811) 2019-02-19 15:29:00 -08:00