René's URL Explorer Experiment


Title: NG8011 isn't reported when a `@boundary` block prevents a node from being projected · Issue #71288 · angular/angular · GitHub

Open Graph Title: NG8011 isn't reported when a `@boundary` block prevents a node from being projected · Issue #71288 · angular/angular

X Title: NG8011 isn't reported when a `@boundary` block prevents a node from being projected · Issue #71288 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? compiler-cli, compiler Is this a regression? No Description Like @if, @for and @switch, a @boundary block copies the tag name and attributes of its single root node, so that node can...

Open Graph Description: Which @angular/* package(s) are the source of the bug? compiler-cli, compiler Is this a regression? No Description Like @if, @for and @switch, a @boundary block copies the tag name and attributes o...

X Description: Which @angular/* package(s) are the source of the bug? compiler-cli, compiler Is this a regression? No Description Like @if, @for and @switch, a @boundary block copies the tag name and attributes o...

Opengraph URL: https://github.com/angular/angular/issues/71288

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NG8011 isn't reported when a `@boundary` block prevents a node from being projected","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncompiler-cli, compiler\n\n### Is this a regression?\n\nNo\n\n### Description\n\nLike `@if`, `@for` and `@switch`, a `@boundary` block copies the tag name and attributes of its single root node, so that node can be projected into a specific `ng-content` slot. When the block has more than one root node, the node goes to the default slot instead. NG8011 (`controlFlowPreventingContentProjection`) warns about this for the other blocks, but not for `@boundary`.\n\n```ts\n@Component({\n  selector: 'app-card',\n  template: `\n    \u003cdiv class=\"body\">\u003cng-content />\u003c/div>\n    \u003cdiv class=\"title\">\u003cng-content select=\"[card-title]\" />\u003c/div>\n  `,\n})\nexport class Card {}\n```\n\n```html\n\u003capp-card>\n  @boundary {\n    \u003ch2 card-title>Title\u003c/h2>\n    \u003cp>Subtitle\u003c/p>\n  } @error {\n    \u003cp>Could not load the card.\u003c/p>\n  }\n\u003c/app-card>\n```\n\n`\u003ch2 card-title>` ends up in `.body` instead of `.title`, and nothing is reported. With `@if (true)` in place of `@boundary`, the same template gets the NG8011 warning.\n\n`TcbControlFlowContentProjectionOp.findPotentialControlFlowNodes` (`packages/compiler/src/typecheck/ops/content_projection.ts`) only collects `@if`, `@for` and `@switch` blocks. `@boundary` came later (#70463) and the diagnostic wasn't updated.\n\nA related difference I noticed: `@error` blocks don't copy the tag name and attributes of their root node at all. `ingestBoundaryBlock` only does it for the main block, and the `BoundaryErrorCreate` op is emitted with a `null` tag and attributes. So a lone `\u003cspan card-title>` inside `@error` goes to the default slot, while it goes to the right slot inside an `@else`. I'm not sure whether that's intended, so I've kept it out of the fix.\n\n#71289 has the fix and tests.\n\n### Please provide a link to a minimal reproduction of the bug\n\nNo hosted reproduction, but this is self-contained (compiled with `strictTemplates: true`):\n\n```ts\nimport {Component} from '@angular/core';\nimport {bootstrapApplication} from '@angular/platform-browser';\n\n@Component({\n  selector: 'app-card',\n  template: `body: [\u003cng-content />] title: [\u003cng-content select=\"[card-title]\" />]`,\n})\nexport class Card {}\n\n@Component({\n  selector: 'app-root',\n  imports: [Card],\n  template: `\n    \u003capp-card>\n      @boundary {\n        \u003ch2 card-title>Title\u003c/h2>\n        \u003cp>Subtitle\u003c/p>\n      } @error {\n        \u003cp>Could not load the card.\u003c/p>\n      }\n    \u003c/app-card>\n  `,\n})\nexport class App {}\n\nbootstrapApplication(App);\n```\n\nThe compiler doesn't report anything, and the page shows the title inside `body: [...]`.\n\n### Please provide the exception or error you saw\n\n```true\nNo diagnostic. With `@if (true)` instead of `@boundary`, the compiler reports:\n\nwarning NG8011: Node matches the \"[card-title]\" slot of the \"Card\" component, but will not be projected into the specific slot because the surrounding @if has more than one node at its root.\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nReproduced on the main branch of angular/angular (458f1d76b8).\n```\n\n### Anything else?\n\n_No response_\n","author":{"url":"https://github.com/aminesbdev","@type":"Person","name":"aminesbdev"},"datePublished":"2026-10-10T19:02:52Z","url":"https://github.com/angular/angular/issues/71288"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e27df4b4-0fda-8cae-e027-47a11bf90f6c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD1C4:5F221:1481C6:1C83A4:6AFDD947
html-safe-nonce6a3c6b08b60193aa8b4a28a3d41d75e4719fc4ebb06b6afb09535b2ee3323cf5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUM0OjVGMjIxOjE0ODFDNjoxQzgzQTQ6NkFGREQ5NDciLCJ2aXNpdG9yX2lkIjoiNzc1MjM2NDkzODI3MzYxMDA1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb38e3505ed5c8a733af3f9a0220393069a93cbe59052d5d965bf1ebd27e67a39
hovercard-subject-tagissue:5794351530
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/71288/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0f2051c1d664f3cd82303c4f14275bfbf26d4c212fc3110e668b2f24deaa8bf7/angular/angular/issues/71288
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0f2051c1d664f3cd82303c4f14275bfbf26d4c212fc3110e668b2f24deaa8bf7/angular/angular/issues/71288
og:image:altWhich @angular/* package(s) are the source of the bug? compiler-cli, compiler Is this a regression? No Description Like @if, @for and @switch, a @boundary block copies the tag name and attributes o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaminesbdev
hostnamegithub.com
expected-hostnamegithub.com
None9918bd4004419458bcd838065ac2a76b76ebd11705d73909fff5ab99e996fa23
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea231c174493a6a442c0b0544475c918b30128208
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/71288#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F71288
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F71288
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/71288
Reloadhttps://github.com/angular/angular/issues/71288
Reloadhttps://github.com/angular/angular/issues/71288
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues833 (833)https://github.com/angular/angular/issues
Pull requests126 (126)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/71288
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/71288
#71289https://github.com/angular/angular/pull/71289
NG8011 isn't reported when a @boundary block prevents a node from being projectedhttps://github.com/angular/angular/issues/71288#top
#71289https://github.com/angular/angular/pull/71289
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/aminesbdev
aminesbdevhttps://github.com/aminesbdev
on Oct 10, 2026https://github.com/angular/angular/issues/71288#issue-5794351530
#70463https://github.com/angular/angular/pull/70463
#71289https://github.com/angular/angular/pull/71289
angular-robothttps://github.com/apps/angular-robot
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
on Oct 10, 2026https://github.com/angular/angular/issues/71288#event-32954179627
angular-robothttps://github.com/apps/angular-robot
needsTriagehttps://github.com/angular/angular/milestone/83
on Oct 10, 2026https://github.com/angular/angular/issues/71288#event-32954180402
aminesbdevhttps://github.com/aminesbdev
on Oct 10, 2026https://github.com/angular/angular/issues/71288#event-32955282773
fix(compiler): check `@boundary` blocks in the control flow content p…https://github.com/aminesbdev/angular/commit/813eddc989403017b8dadb4cd54c464bc6e08b69
https://docs.github.com/articles/closing-issues-via-commit-messages
813eddchttps://github.com/aminesbdev/angular/commit/813eddc989403017b8dadb4cd54c464bc6e08b69
fix(compiler): check `@boundary` blocks in the control flow content p…https://github.com/aminesbdev/angular/commit/85bd55caac774c6ec3a9d1de8c01a366b5c0dbf9
https://docs.github.com/articles/closing-issues-via-commit-messages
85bd55chttps://github.com/aminesbdev/angular/commit/85bd55caac774c6ec3a9d1de8c01a366b5c0dbf9
amishnehttps://github.com/amishne
on Oct 14, 2026https://github.com/angular/angular/issues/71288#event-33264126321
fix(compiler): check `@boundary` blocks in the control flow content p…https://github.com/angular/angular/commit/d9bd68258dcb0192487837ed53ce393ca51c6ed6
https://docs.github.com/articles/closing-issues-via-commit-messages
d9bd682https://github.com/angular/angular/commit/d9bd68258dcb0192487837ed53ce393ca51c6ed6
amishnehttps://github.com/amishne
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#71289https://github.com/angular/angular/pull/71289
on Oct 14, 2026https://github.com/angular/angular/issues/71288#event-33264126899
amishnehttps://github.com/amishne
on Oct 14, 2026https://github.com/angular/angular/issues/71288#event-33264192025
fix(compiler): check `@boundary` blocks in the control flow content p…https://github.com/angular/angular/commit/54f3de517c2e4cda264eca5f2d143a1f6967c7a9
https://docs.github.com/articles/closing-issues-via-commit-messages
54f3de5https://github.com/angular/angular/commit/54f3de517c2e4cda264eca5f2d143a1f6967c7a9
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 14, 2026https://github.com/angular/angular/issues/71288#issuecomment-6868235697
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 14, 2026https://github.com/angular/angular/issues/71288#event-36087056208
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/71288
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/71288
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.