Files
angular/packages/compiler
Amine 54f3de517c fix(compiler): check @boundary blocks in the control flow content projection diagnostic
Like `@if`, `@for` and `@switch`, a `@boundary` block copies the tag name
and attributes of its single root node, so the node can be projected into a
specific `ng-content` slot. The `controlFlowPreventingContentProjection`
diagnostic (NG8011) didn't look at `@boundary` blocks though, so an element
next to a second root node was silently projected into the default slot.

`@error` blocks are left out on purpose: they don't copy the tag name and
attributes of their root node, so the diagnostic's suggestions wouldn't apply.

Fixes #71288
2026-10-14 13:04:31 -07:00
..
2025-12-16 14:44:19 -08:00