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
|
||
|---|---|---|
| .. | ||
| contributors | ||
| _payload-limits.json | ||
| audit-web-app.js | ||
| build-404-page.js | ||
| build-artifacts.sh | ||
| check-environment.js | ||
| create-preview.js | ||
| deploy-to-firebase.sh | ||
| deploy-to-firebase.test.sh | ||
| payload.sh | ||
| switch-to-viewengine.js | ||
| test-aio-a11y.js | ||
| test-preview.js | ||
| test-production.sh | ||