René's URL Explorer Experiment


Title: Angular 17 @empty block not working in nested propagated component · Issue #53570 · angular/angular · GitHub

Open Graph Title: Angular 17 @empty block not working in nested propagated component · Issue #53570 · angular/angular

X Title: Angular 17 @empty block not working in nested propagated component · Issue #53570 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description When I try to display some HTML within an @empty block is not rendering anything whereas if I am using a @if approach is working fine. Bello...

Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description When I try to display some HTML within an @empty block is not rendering anything whereas if I am usi...

X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description When I try to display some HTML within an @empty block is not rendering anything whereas if I am usi...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 17 @empty block not working in nested propagated component","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\ncore\r\n\r\n### Is this a regression?\r\n\r\nNo\r\n\r\n### Description\r\n\r\nWhen I try to display some HTML within an @empty block is not rendering anything whereas if I am using a @if approach is working fine.\r\n\r\nBellow snippet belongs to a nested HTML propagated using Angular projections (the _main_ attribute is a projection area)\r\n```HTML\r\n\t\u003cplc-box main *ngrxLet=\"games$ as games\">\r\n\t\t@for (game of games; track game._id) {\r\n\t\t\u003cplc-game-row main [game]=\"game\">\u003c/plc-game-row>\r\n\t\t} @empty {                               \u003c!-- \u003c=== This line FAILS-->\r\n\t\t\u003c!-- } @if(games.length === 0) { -->     \u003c!-- \u003c=== This line WORKS-->\r\n\t\t\u003cng-container main>\r\n\t\t\t\u003cplc-icon [name]=\"'landscape'\" >\u003c/plc-icon>\r\n\t\t\t\u003cplc-label class=\"plc-search-game__no-record-label\">\r\n\t\t\t\t{{ 'pages.search-game.no-results' | translate }}\r\n\t\t\t\u003c/plc-label>\r\n\t\t\u003c/ng-container>\r\n\t\t}\r\n\t\u003c/plc-box>\r\n```\r\n\r\nSame code outside of a propagation based component works fine (e.g. inside a regular `\u003cdiv>\u003c/div>`)\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\n[_Minimal reproduction in StackBlitz_](https://stackblitz.com/edit/stackblitz-starters-wi1jft?file=src%2Fmain.ts)\r\n\r\n### Please provide the exception or error you saw\r\n\r\n```true\r\nI see a blank spot where a HTML should be displayed instead\r\n```\r\n\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: 17.0.7\r\nNode: 18.18.2\r\nPackage Manager: npm 9.8.1\r\nOS: win32 x64\r\n\r\nAngular: 17.0.7\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage                         Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect       0.1700.7\r\n@angular-devkit/build-angular   17.0.7\r\n@angular-devkit/core            17.0.7\r\n@angular-devkit/schematics      17.0.7\r\n@angular/cdk                    16.0.1\r\n@angular/material               16.0.1\r\n@schematics/angular             17.0.7\r\nng-packagr                      17.0.2\r\nrxjs                            7.8.1\r\ntypescript                      5.2.2\r\nzone.js                         0.14.2\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\n_No response_","author":{"url":"https://github.com/WarGreyGon","@type":"Person","name":"WarGreyGon"},"datePublished":"2023-12-14T12:55:37Z","url":"https://github.com/angular/angular/issues/53570"}

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:a782348d-e163-3cce-aa31-32d3ac11dec3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB4CA:16EED3:118591E:165144C:6B011BED
html-safe-noncec7791e985d93c93747b9003322260cd58988ab644c09a3681b95c2ca8f7c8117
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNENBOjE2RUVEMzoxMTg1OTFFOjE2NTE0NEM6NkIwMTFCRUQiLCJ2aXNpdG9yX2lkIjoiOTEzMDU2NTU0MzUwNDQ1MjU4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc744ed266c9384e70402b6df023c037c2a909de2752560ca08211b34116954eb
hovercard-subject-tagissue:2041644868
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/53570/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fd942fb79870dd7de311a18d17cc11b32e04644f6d92cff660f36759e780035a/angular/angular/issues/53570
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fd942fb79870dd7de311a18d17cc11b32e04644f6d92cff660f36759e780035a/angular/angular/issues/53570
og:image:altWhich @angular/* package(s) are the source of the bug? core Is this a regression? No Description When I try to display some HTML within an @empty block is not rendering anything whereas if I am usi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameWarGreyGon
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/53570#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F53570
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%2F53570
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/53570
Reloadhttps://github.com/angular/angular/issues/53570
Reloadhttps://github.com/angular/angular/issues/53570
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/53570
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/53570
Angular 17 @empty block not working in nested propagated componenthttps://github.com/angular/angular/issues/53570#top
https://github.com/crisbeto
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
bughttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22bug%22
core: content projectionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20content%20projection%22
core: control flowIssues related to the built-in control flow (@if, @for, @switch)https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20control%20flow%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/WarGreyGon
WarGreyGonhttps://github.com/WarGreyGon
on Dec 14, 2023https://github.com/angular/angular/issues/53570#issue-2041644868
@emptyhttps://github.com/empty
@ifhttps://github.com/if
Minimal reproduction in StackBlitzhttps://stackblitz.com/edit/stackblitz-starters-wi1jft?file=src%2Fmain.ts
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Dec 14, 2023https://github.com/angular/angular/issues/53570#issuecomment-1856016680
JoostKhttps://github.com/JoostK
needs reproductionThis issue needs a reproduction in order for the team to investigate furtherhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%20reproduction%22
on Dec 14, 2023https://github.com/angular/angular/issues/53570#event-11249280653
https://github.com/WarGreyGon
WarGreyGonhttps://github.com/WarGreyGon
on Dec 14, 2023https://github.com/angular/angular/issues/53570#issuecomment-1856070314
@JoostKhttps://github.com/JoostK
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Dec 14, 2023https://github.com/angular/angular/issues/53570#issuecomment-1856102153
#52414https://github.com/angular/angular/pull/52414
JoostKhttps://github.com/JoostK
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: control flowIssues related to the built-in control flow (@if, @for, @switch)https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20control%20flow%22
needs reproductionThis issue needs a reproduction in order for the team to investigate furtherhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%20reproduction%22
on Dec 14, 2023https://github.com/angular/angular/issues/53570#event-11249868384
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Dec 14, 2023https://github.com/angular/angular/issues/53570#event-11249868772
JoostKhttps://github.com/JoostK
core: content projectionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20content%20projection%22
on Dec 14, 2023https://github.com/angular/angular/issues/53570#event-11249869871
https://github.com/crisbeto
crisbetohttps://github.com/crisbeto
on Dec 14, 2023https://github.com/angular/angular/issues/53570#issuecomment-1856750284
crisbetohttps://github.com/crisbeto
on Dec 18, 2023https://github.com/angular/angular/issues/53570#event-11276626369
https://github.com/pkozlowski-opensource
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Dec 18, 2023https://github.com/angular/angular/issues/53570#issuecomment-1860453651
@forhttps://github.com/for
@emptyhttps://github.com/empty
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
bughttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22bug%22
on Dec 18, 2023https://github.com/angular/angular/issues/53570#event-11276888288
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Dec 18, 2023https://github.com/angular/angular/issues/53570#event-11276888653
crisbetohttps://github.com/crisbeto
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
on Dec 18, 2023https://github.com/angular/angular/issues/53570#event-11278761348
crisbetohttps://github.com/crisbeto
on Dec 18, 2023https://github.com/angular/angular/issues/53570#event-11278763057
fix(compiler): project empty block root nodehttps://github.com/crisbeto/angular/commit/9253e2fcafa0f4c4771198d54a4f97a623ae03ee
https://docs.github.com/articles/closing-issues-via-commit-messages
9253e2fhttps://github.com/crisbeto/angular/commit/9253e2fcafa0f4c4771198d54a4f97a623ae03ee
atscotthttps://github.com/atscott
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
df8a825https://github.com/angular/angular/commit/df8a825910951bebf34a4eede42f3ce5cd3e6fb7
on Dec 19, 2023https://github.com/angular/angular/issues/53570#event-11292180683
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jan 19, 2024https://github.com/angular/angular/issues/53570#issuecomment-1899415955
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jan 19, 2024https://github.com/angular/angular/issues/53570#event-11531328065
ChellappanRajanhttps://github.com/ChellappanRajan
on Jan 23, 2024https://github.com/angular/angular/issues/53570#event-11564112193
fix(compiler): project empty block root node (angular#53620)https://github.com/ChellappanRajan/angular/commit/78b0741f3594e5fcdb5e9c4f2bf35de5560abc05
angular#53620https://github.com/angular/angular/pull/53620
https://docs.github.com/articles/closing-issues-via-commit-messages
78b0741https://github.com/ChellappanRajan/angular/commit/78b0741f3594e5fcdb5e9c4f2bf35de5560abc05
rlmestrehttps://github.com/rlmestre
on Jan 26, 2024https://github.com/angular/angular/issues/53570#event-11603944127
fix(compiler): project empty block root node (angular#53620)https://github.com/rlmestre/angular/commit/42ed6bc7b140f5e0fd9e263d97d46d03eaa16f90
angular#53620https://github.com/angular/angular/pull/53620
https://docs.github.com/articles/closing-issues-via-commit-messages
42ed6bchttps://github.com/rlmestre/angular/commit/42ed6bc7b140f5e0fd9e263d97d46d03eaa16f90
amilamenhttps://github.com/amilamen
on Jan 26, 2024https://github.com/angular/angular/issues/53570#event-11608197837
fix(compiler): project empty block root node (angular#53620)https://github.com/amilamen/angular/commit/ee8815dd3805a08a862001b2480d12953e87b83f
angular#53620https://github.com/angular/angular/pull/53620
https://docs.github.com/articles/closing-issues-via-commit-messages
ee8815dhttps://github.com/amilamen/angular/commit/ee8815dd3805a08a862001b2480d12953e87b83f
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/53570
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/53570
crisbetohttps://github.com/crisbeto
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
bughttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22bug%22
core: content projectionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20content%20projection%22
core: control flowIssues related to the built-in control flow (@if, @for, @switch)https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20control%20flow%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
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.