mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
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