René's URL Explorer Experiment


Title: Make it possible to reason about content to project (content projection and content queries unification) · Issue #37319 · angular/angular · GitHub

Open Graph Title: Make it possible to reason about content to project (content projection and content queries unification) · Issue #37319 · angular/angular

X Title: Make it possible to reason about content to project (content projection and content queries unification) · Issue #37319 · angular/angular

Description: There are multiple use-cases where one would like to reason about content provided to a component (check if content was provided at all, count the number of items etc.). To make the discussion more concrete let's consider the following m...

Open Graph Description: There are multiple use-cases where one would like to reason about content provided to a component (check if content was provided at all, count the number of items etc.). To make the discussion more...

X Description: There are multiple use-cases where one would like to reason about content provided to a component (check if content was provided at all, count the number of items etc.). To make the discussion more...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make it possible to reason about content to project (content projection and content queries unification)","articleBody":"There are multiple use-cases where one would like to reason about content provided to a component  (check if content was provided at all, count the number of items etc.). \r\n\r\nTo make the discussion more concrete let's consider the following markup ([full runnable scenario](https://stackblitz.com/edit/angular-ivy-sumkgl?file=src%2Fapp%2Fapp.component.ts)):\r\n\r\n```html\r\n\u003cmy-container>\r\n      \u003cmy-item>\u003c/my-item>\r\n      \u003cmy-item>\u003c/my-item> \r\n      \u003cmy-item>\u003c/my-item>\r\n\u003c/my-container>\r\n```\r\n\r\nGiven this markup the `\u003cmy-container>` component might want to answer the following questions:\r\n* was content provided at all (existing, popular issue.:  #26083)\r\n* how many items were provided (as of today this could be done through content queries only).\r\n\r\nOn top of this the `\u003cmy-container>` implementation might want to do the following (all the provided examples boil down to the ability of projecting items individually):\r\n* wrap each item into some markup;\r\n* project only 2 first items;\r\n* project every second item (or items in 2 separate columns);\r\n* etc. etc.\r\n\r\nAchieving any of the use-cases listed above is very difficult in the current Angular and it steams from the fact that one can't reason (count, pick-up, check presence etc.) about individual items to project. \r\n\r\nWhile content queries can be used, to some degree, to reason about content items individually, the content queries approach has its problems as well:\r\n* we end up with 2 mechanism operating on content (content queries and content projection) - those 2 mechanism have different APIs, different capabilities, need to be learnt separately etc.;\r\n* there is a fundamental mismatch between 2 mechanism: content projection operates on \"blocks\" that can't be reason about (but capture content), while content queries are good with individual items but don't capture content (we can't insert result of a content query into the DOM).\r\n\r\nThis fundamental mismatch between content projection and content queries leads to many surprising situations and use-cases that can't be implemented really. Again, here is a \"typical\" example: https://stackblitz.com/edit/angular-ivy-sumkgl?file=src%2Fapp%2Fapp.component.ts\r\n\r\nIn short: content projection and content queries are good mechanisms while used separately, but as soon as we try to use both mechanisms together we start to bump into serious problems.\r\n\r\nThe idea behind opening this issue is to capture use-cases that are difficult to implement and expose problems where both content queries and content projection are used together. This should open ways to designing a more powerful content projection where it is possible to reason about and project content with one API. To set expectations: there are no immediate implementation plans, we want to capture use-cases and experiment with different APIs first.","author":{"url":"https://github.com/pkozlowski-opensource","@type":"Person","name":"pkozlowski-opensource"},"datePublished":"2020-05-28T10:50:56Z","url":"https://github.com/angular/angular/issues/37319"}

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:169307b5-f117-d146-79df-13a790ced58f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA9B4:1F7384:B7E3A6:F489F3:6B00F080
html-safe-nonce2af3227fb74e3a0a83002ac834b24a232a146a1d154d79c1f8886ace2a782148
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUI0OjFGNzM4NDpCN0UzQTY6RjQ4OUYzOjZCMDBGMDgwIiwidmlzaXRvcl9pZCI6IjMxNzY2NDk5NzEwMzAwOTM5NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac70eba216078301bea35384e36a2872b8dff23fa93584ca3e6bb2c7ba15af6d82
hovercard-subject-tagissue:626412470
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/37319/issue_layout
twitter:imagehttps://opengraph.githubassets.com/799091a2ccb91f9abea4f31ee9b6a9dc2b55e3c2d761240c94db0d46ff0ba6b8/angular/angular/issues/37319
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/799091a2ccb91f9abea4f31ee9b6a9dc2b55e3c2d761240c94db0d46ff0ba6b8/angular/angular/issues/37319
og:image:altThere are multiple use-cases where one would like to reason about content provided to a component (check if content was provided at all, count the number of items etc.). To make the discussion more...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepkozlowski-opensource
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/37319#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F37319
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%2F37319
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/37319
Reloadhttps://github.com/angular/angular/issues/37319
Reloadhttps://github.com/angular/angular/issues/37319
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/37319
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/37319
Make it possible to reason about content to project (content projection and content queries unification)https://github.com/angular/angular/issues/37319#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: content projectionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20content%20projection%22
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
needs: discussionIndicates than an issue is an open discussionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
type: use-casehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20use-case%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/pkozlowski-opensource
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on May 28, 2020https://github.com/angular/angular/issues/37319#issue-626412470
full runnable scenariohttps://stackblitz.com/edit/angular-ivy-sumkgl?file=src%2Fapp%2Fapp.component.ts
No ability to check if was provided to the component #26083https://github.com/angular/angular/issues/26083
https://stackblitz.com/edit/angular-ivy-sumkgl?file=src%2Fapp%2Fapp.component.tshttps://stackblitz.com/edit/angular-ivy-sumkgl?file=src%2Fapp%2Fapp.component.ts
Nexthttps://github.com/angular/angular/issues/37319?timeline_page=1
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on May 28, 2020https://github.com/angular/angular/issues/37319#event-3382221143
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on May 28, 2020https://github.com/angular/angular/issues/37319#event-3382221185
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
core: content projectionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20content%20projection%22
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
type: use-casehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20use-case%22
on May 28, 2020https://github.com/angular/angular/issues/37319#event-3382222253
https://github.com/bmtheo
bmtheohttps://github.com/bmtheo
on Jun 9, 2020https://github.com/angular/angular/issues/37319#issuecomment-641143324
angular/components#9411https://github.com/angular/components/issues/9411
https://stackblitz.com/edit/angular-material2-issue-jekywvhttps://stackblitz.com/edit/angular-material2-issue-jekywv
jelbournhttps://github.com/jelbourn
needs: discussionIndicates than an issue is an open discussionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
on Oct 21, 2020https://github.com/angular/angular/issues/37319#event-3904659673
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Oct 21, 2020https://github.com/angular/angular/issues/37319#event-3904659744
jelbournhttps://github.com/jelbourn
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Oct 21, 2020https://github.com/angular/angular/issues/37319#event-3904660254
https://github.com/mills-andrew
mills-andrewhttps://github.com/mills-andrew
on Feb 25, 2022https://github.com/angular/angular/issues/37319#issuecomment-1051057644
AndrewKushnirhttps://github.com/AndrewKushnir
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on Mar 15, 2022https://github.com/angular/angular/issues/37319#event-6239499787
https://github.com/haskelcurry
haskelcurryhttps://github.com/haskelcurry
on Apr 28, 2022https://github.com/angular/angular/issues/37319#issuecomment-1111855335
https://github.com/zolakt
zolakthttps://github.com/zolakt
on May 19, 2022https://github.com/angular/angular/issues/37319#issuecomment-1131919190
https://github.com/patryk-sliz
patryk-slizhttps://github.com/patryk-sliz
on Mar 13, 2023https://github.com/angular/angular/issues/37319#issuecomment-1466900713
https://github.com/ghaschel
ghaschelhttps://github.com/ghaschel
on Apr 4, 2023https://github.com/angular/angular/issues/37319#issuecomment-1496323546
https://github.com/haskelcurry
haskelcurryhttps://github.com/haskelcurry
on Apr 5, 2023https://github.com/angular/angular/issues/37319#issuecomment-1497363027
https://github.com/n614cd
n614cdhttps://github.com/n614cd
on Apr 27, 2023https://github.com/angular/angular/issues/37319#issuecomment-1524359010
https://github.com/j-a-m-l
j-a-m-lhttps://github.com/j-a-m-l
on Jun 27, 2023https://github.com/angular/angular/issues/37319#issuecomment-1609891314
angular/components#9411 (comment)https://github.com/angular/components/issues/9411#issuecomment-596075768
@GrandSchtroumpfhttps://github.com/GrandSchtroumpf
https://github.com/csisy-bt4w
csisy-bt4whttps://github.com/csisy-bt4w
on May 14, 2024https://github.com/angular/angular/issues/37319#issuecomment-2109465534
https://stackblitz.com/edit/stackblitz-starters-fndspl?file=src%2Fmain.tshttps://stackblitz.com/edit/stackblitz-starters-fndspl?file=src%2Fmain.ts
https://github.com/ngaritagoitia
ngaritagoitiahttps://github.com/ngaritagoitia
on Jul 3, 2024https://github.com/angular/angular/issues/37319#issuecomment-2206039719
https://github.com/nkosi23
nkosi23https://github.com/nkosi23
on Aug 23, 2024https://github.com/angular/angular/issues/37319#issuecomment-2307575688
https://github.com/vlio20
vlio20https://github.com/vlio20
on Aug 29, 2024https://github.com/angular/angular/issues/37319#issuecomment-2318994648
https://github.com/tmb-jyskefinans-dk
tmb-jyskefinans-dkhttps://github.com/tmb-jyskefinans-dk
on Sep 19, 2024https://github.com/angular/angular/issues/37319#issuecomment-2361026156
https://github.com/BenRacicot
BenRacicothttps://github.com/BenRacicot
on Sep 19, 2024https://github.com/angular/angular/issues/37319#issuecomment-2361557969
https://github.com/Fasteroid
Fasteroidhttps://github.com/Fasteroid
on May 6, 2025https://github.com/angular/angular/issues/37319#issuecomment-2855957695
https://github.com/Fasteroid
Fasteroidhttps://github.com/Fasteroid
on May 6, 2025https://github.com/angular/angular/issues/37319#issuecomment-2855995123
https://github.com/mrmokwa
mrmokwahttps://github.com/mrmokwa
on May 7, 2025https://github.com/angular/angular/issues/37319#issuecomment-2858860008
7b1e5behttps://github.com/angular/angular/commit/7b1e5be20b99c88246c6be78a4dcd64eb55cee1a
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
Allow for iterative content projection with content children #61095https://github.com/angular/angular/issues/61095
on May 12, 2025https://github.com/angular/angular/issues/37319#event-17613088669
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/37319
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/37319
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: content projectionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20content%20projection%22
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
needs: discussionIndicates than an issue is an open discussionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
type: use-casehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20use-case%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.