René's URL Explorer Experiment


Title: Report bindings that have no effect on ng-container, ng-template, and ng-content · Issue #71881 · angular/angular · GitHub

Open Graph Title: Report bindings that have no effect on ng-container, ng-template, and ng-content · Issue #71881 · angular/angular

X Title: Report bindings that have no effect on ng-container, ng-template, and ng-content · Issue #71881 · angular/angular

Description: Which @angular/* package(s) are relevant/related to the feature request? compiler, compiler-cli, core Description , , and don't render an element. Angular accepts bindings and attributes on them th...

Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? compiler, compiler-cli, core Description , , and don't render an element. Angular ac...

X Description: Which @angular/* package(s) are relevant/related to the feature request? compiler, compiler-cli, core Description <ng-container>, <ng-template>, and <ng-content> don't render ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Report bindings that have no effect on ng-container, ng-template, and ng-content","articleBody":"### Which @angular/\\* package(s) are relevant/related to the feature request?\n\ncompiler, compiler-cli, core\n\n### Description\n\n`\u003cng-container>`, `\u003cng-template>`, and `\u003cng-content>` don't render an element. Angular accepts\nbindings and attributes on them that can never take effect, and most of them compile and run\nwithout a word:\n\n```html\n\u003cng-container class=\"card\" [class.active]=\"isActive\" (click)=\"select()\">...\u003c/ng-container>\n\u003cng-template [title]=\"label\" (click)=\"missing()\">...\u003c/ng-template>\n\u003cng-content selector=\"h1\" />\n```\n\nNothing on these lines does anything:\n\n- Class, style, and event bindings on `\u003cng-container>` and `\u003cng-template>` are ignored, unless a\n  directive claims them.\n- Bindings that no directive claims on `\u003cng-template>` aren't type-checked, so\n  `(click)=\"missing()\"` compiles.\n- `\u003cng-content>` ignores every binding, and every attribute except `select` and `ngProjectAs`. The\n  `selector` typo (for `select`) silently makes the slot a default slot. Angular's own upgrade\n  examples have had this typo since 2017.\n- `NO_ERRORS_SCHEMA` hides unknown properties on `\u003cng-container>`, although no schema can give it\n  a property.\n- Inside `\u003csvg>`, `[attr.x]` on `\u003cng-container>` skips its parse error and throws a misleading\n  assertion in dev mode.\n\n### Proposed solution\n\nReport what Angular ignores, and nothing that takes effect. Code generation and runtime behavior\ndon't change.\n\n**Step 1, not breaking:**\n\n- **NG8031 `ignoredBinding`**, a new type-check diagnostic. It needs\n  `strictTemplates`, is a warning by default, and is configured through\n  `extendedDiagnostics.checks`, like NG8011. It reports class, style, `attr.`, animation, and\n  event bindings that no directive claims, every binding on `\u003cng-content>`, and static attributes\n  that nothing reads.\n- **NG8032**, a template type-check warning for a component whose selector matches\n  `\u003cng-container>` or `\u003cng-template>`. That compiles today and fails only when the template\n  renders, in dev and production mode.\n- The language service stops suggesting DOM attributes on `\u003cng-container>`.\n- **NG0319**, a dev-mode runtime log for class, style, and event bindings on `\u003cng-container>` and\n  `\u003cng-template>`, so JIT is covered too.\n- The `\u003csvg>` parse fix.\n\n**Step 2, breaking:** severities only, in two independent PRs.\n\n- NG8032 is an error.\n- NG8031 is an error by default, and NG0319 throws under `errorOnUnknownProperties`.\n\nEvery new error points at a binding or component that never worked. NG8031 can be set back to\n`\"warning\"` or `\"suppress\"`.\n\nNot reported: bindings a directive claims, directive host bindings (directives are reusable),\nglobal event targets, and static attributes that a directive, a structural directive, a content\nprojection slot, or Angular itself reads.\n\nQuestion for the team: are the step 2 PRs fine for a minor release, or should they wait for a\nmajor? They can land separately.\n\nPRs: #71882 (step 1); #71883 (NG8032 error) and #71884 (NG8031 error), each building on #71882\n\n### Alternatives considered\n\n- **A template parse error.** The linker re-parses published libraries, so a parse error would\n  break libraries that compile today.\n- **Only an extended diagnostic.** It can warn, but step 2 needs the same check in the type\n  checker. One check in the type checker serves both levels.\n- **Only a runtime error.** It reports late, in dev mode only, and can't see bindings on\n  `\u003cng-content>` or which static attributes something reads.\n- **Also reporting directive host bindings.** A directive can apply to elements where those\n  bindings work, so reporting them would be noise.\n","author":{"url":"https://github.com/Flarette","@type":"Person","name":"Flarette"},"datePublished":"2026-11-08T17:02:02Z","url":"https://github.com/angular/angular/issues/71881"}

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:0a61db02-d49d-1483-09c3-ef2646733b1e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA6B4:19F84C:FAE3D7:141FEA3:6B00FDFA
html-safe-nonce59361fdd63518fb2fe1db561eaccaef00f5011e3c7589f4f53fadddf6684fb3d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkI0OjE5Rjg0QzpGQUUzRDc6MTQxRkVBMzo2QjAwRkRGQSIsInZpc2l0b3JfaWQiOiI2OTY0MTQxMTkyODA4MzAwMDI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac588b051a05e4bc91111524aa57d20398790ad20cc26850bfc2ba707a7587a949
hovercard-subject-tagissue:6273351105
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/71881/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9f155549b95baef9ab62aeb814a8d204910313cfe8367a269892eb33b6fb403b/angular/angular/issues/71881
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9f155549b95baef9ab62aeb814a8d204910313cfe8367a269892eb33b6fb403b/angular/angular/issues/71881
og:image:altWhich @angular/* package(s) are relevant/related to the feature request? compiler, compiler-cli, core Description , , and don't render an element. Angular ac...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameFlarette
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
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
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/71881#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F71881
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%2F71881
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/71881
Reloadhttps://github.com/angular/angular/issues/71881
Reloadhttps://github.com/angular/angular/issues/71881
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)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/71881
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/71881
Report bindings that have no effect on ng-container, ng-template, and ng-contenthttps://github.com/angular/angular/issues/71881#top
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/Flarette
Flarettehttps://github.com/Flarette
on Nov 8, 2026https://github.com/angular/angular/issues/71881#issue-6273351105
#71882https://github.com/angular/angular/pull/71882
#71883https://github.com/angular/angular/pull/71883
#71884https://github.com/angular/angular/pull/71884
#71882https://github.com/angular/angular/pull/71882
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 Nov 8, 2026https://github.com/angular/angular/issues/71881#event-35503009090
angular-robothttps://github.com/apps/angular-robot
needsTriagehttps://github.com/angular/angular/milestone/83
on Nov 8, 2026https://github.com/angular/angular/issues/71881#event-35503010483
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Nov 8, 2026https://github.com/angular/angular/issues/71881#event-35503010646
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Nov 8, 2026https://github.com/angular/angular/issues/71881#issuecomment-6724578680
#69640https://github.com/angular/angular/pull/69640
#70808https://github.com/angular/angular/pull/70808
#71844https://github.com/angular/angular/pull/71844
#70808https://github.com/angular/angular/pull/70808
#24259https://github.com/angular/angular/issues/24259
#68715https://github.com/angular/angular/pull/68715
mentionedhttps://github.com/angular/angular/pull/68715#issuecomment-4446935264
https://github.com/Flarette
Flarettehttps://github.com/Flarette
on Nov 8, 2026https://github.com/angular/angular/issues/71881#issuecomment-6724650865
#69640https://github.com/angular/angular/pull/69640
#70808https://github.com/angular/angular/pull/70808
#71844https://github.com/angular/angular/pull/71844
#70808https://github.com/angular/angular/pull/70808
#24259https://github.com/angular/angular/issues/24259
#68715https://github.com/angular/angular/pull/68715
mentionedhttps://github.com/angular/angular/pull/68715#issuecomment-4446935264
https://github.com/Flarette
Flarettehttps://github.com/Flarette
on Nov 8, 2026https://github.com/angular/angular/issues/71881#issuecomment-6724742374
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Nov 8, 2026https://github.com/angular/angular/issues/71881#issuecomment-6725064822
https://github.com/Flarette
Flarettehttps://github.com/Flarette
on Nov 8, 2026https://github.com/angular/angular/issues/71881#issuecomment-6725171889
#71882https://github.com/angular/angular/pull/71882
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Nov 8, 2026https://github.com/angular/angular/issues/71881#issuecomment-6726389523
#71887https://github.com/angular/angular/pull/71887
#53457https://github.com/angular/angular/pull/53457
https://github.com/Flarette
Flarettehttps://github.com/Flarette
on Nov 8, 2026https://github.com/angular/angular/issues/71881#issuecomment-6726943314
#71887https://github.com/angular/angular/pull/71887
#53457https://github.com/angular/angular/pull/53457
#71882https://github.com/angular/angular/pull/71882
#53457https://github.com/angular/angular/pull/53457
compilesToPropertyhttps://github.com/Flarette/angular/blob/0747cac2983d4a4a9bbb69526e5693680a279f3e/packages/compiler/src/typecheck/ops/ignored_bindings.ts#L147-L162
ignored_bindings_spec.tshttps://github.com/Flarette/angular/blob/0747cac2983d4a4a9bbb69526e5693680a279f3e/packages/compiler-cli/test/ngtsc/ignored_bindings_spec.ts#L285-L299
#53457https://github.com/angular/angular/pull/53457
#71887https://github.com/angular/angular/pull/71887
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/71881
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/71881
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.