mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Before this change content queries with the `descendants: false` option, as implemented in ivy,
would not descendinto `<ng-container>` elements. This behaviour was different from the way the
View Engine worked. This change alligns ngIvy and VE behaviours when it comes to queries and the
`<ng-container>` elements and fixes a common bugs where a query target was placed inside the
`<ng-container>` element with a * directive on it.
Before:
```html
<needs-target>
<ng-container *ngIf="condition">
<div #target>...</div> <!-- this node would NOT match -->
</ng-container>
</needs-target>
```
After:
```html
<needs-target>
<ng-container *ngIf="condition">
<div #target>...</div> <!-- this node WILL match -->
</ng-container>
</needs-target>
```
Fixes #34768
PR Close #35384
|
||
|---|---|---|
| .. | ||
| change_detection_integration_spec.ts | ||
| entry_components_integration_spec.ts | ||
| inheritance_integration_spec.ts | ||
| integration_spec.ts | ||
| jit_summaries_integration_spec.ts | ||
| ng_container_integration_spec.ts | ||
| ng_module_integration_spec.ts | ||
| projection_integration_spec.ts | ||
| query_integration_spec.ts | ||
| query_list_spec.ts | ||
| regression_integration_spec.ts | ||
| security_integration_spec.ts | ||
| source_map_integration_node_only_spec.ts | ||
| system_ng_module_factory_loader_spec.ts | ||
| view_injector_integration_spec.ts | ||