René's URL Explorer Experiment


Title: ng-content, slot and content elements don't work with nested Angular custom elements · Issue #24536 · angular/angular · GitHub

Open Graph Title: ng-content, slot and content elements don't work with nested Angular custom elements · Issue #24536 · angular/angular

X Title: ng-content, slot and content elements don't work with nested Angular custom elements · Issue #24536 · angular/angular

Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ] Support request => Please do not submi...

Open Graph Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ...

X Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or reques...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng-content, slot and content elements don't work with nested Angular custom elements","articleBody":"\u003c!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n--\u003e\r\n\r\n## I'm submitting a...\r\n\u003c!-- Check one of the following options with \"x\" --\u003e\r\n\u003cpre\u003e\u003ccode\u003e\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[x] Bug report  \u003c!-- Please search GitHub for a similar issue or PR before submitting --\u003e\r\n[ ] Performance issue\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request =\u003e Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n[ ] Other... Please describe:\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n## Current behavior\r\nCurrently, when you have nested Angular custom elements, and the child element contains ng-content,  content or slot elements in its template, content projection/insertion points don't work. Here's a more detailed explanation of the behavior:\r\n\r\n For the sake of the example, let's have two Angular components - container and button. Button uses content projection and the template of the container component has nested button inside it. \r\n\r\nTried all kinds of scenarios with nested custom elements - using the content element from v.0 of ShadowDom, the slot from v. 1 and ng-content and placing them in the app.component.html, in the angular html page in the src folder, as well as on a separately hosted html page, where I'm loading my elements bundles, generated after a production build (following this approach: https://medium.com/@tomsu/building-web-components-with-angular-elements-746cd2a38d5b).\r\n\r\nHere's what I noticed:\r\n\r\n## 'slot' and 'content' elements behave similarly\r\n1. Insertion points work for both the button and the container, when they are placed in the app.component's template.\r\n2. In the angular src/html - the button's content doesn't show up. The content of the button in the container shows up.\r\n3. On the separately hosted html page - same behavior as 2.\r\n\r\nYou can check a demo with slots here: https://stackblitz.com/edit/angular-6jmqbg\r\n\r\n## ng-content\r\n1. Content projection doesn't work when the button and the container are placed in the app.component.\r\n2. On the src/html page - ng-content works for the button, but doesn't work in the container.\r\n3. In the external html - same as 2 \r\n\r\nYou can check a demo project with ng-content here: https://stackblitz.com/edit/angular-uxthfz\r\n\r\n## Expected behavior\r\nShadow dom insertion points or/and content projection should work in nested Angular custom elements\r\n\r\n## Minimal reproduction of the problem with instructions\r\nYou can check a demo with slots here: https://stackblitz.com/edit/angular-6jmqbg\r\nYou can check a demo project with ng-content here: https://stackblitz.com/edit/angular-uxthfz\r\n\r\n## What is the motivation / use case for changing the behavior?\r\n\r\nI'm mostly interested in the last case - in which I'm loading the bundled elements on a a separately hosted html page (external application). It's pretty blocking for us, because most of our components are complex and contain other components in their templates. \r\n\r\nThanks, guys!  :cake:\r\n\r\n## Environment\r\n\r\n\u003cpre\u003e\u003ccode\u003e\r\nAngular version: 6.0.0\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version --\u003e\r\n\r\n\r\n","author":{"url":"https://github.com/JenPeleva","@type":"Person","name":"JenPeleva"},"datePublished":"2018-06-15T12:01:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/24536/angular/issues/24536"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8aee5e74-b641-f836-2a48-04a3a7996774
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC5C4:32AC14:A5A6E0C:DF02D17:6A5EAEB9
html-safe-noncee97408dda6a022c3bf13bb904372243a5882640f305527618631efd62cf3b8ee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUM0OjMyQUMxNDpBNUE2RTBDOkRGMDJEMTc6NkE1RUFFQjkiLCJ2aXNpdG9yX2lkIjoiNTczNDQ3ODc3MTYxOTAxNjM3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac619fca9ed6755ee43c60a45ae19d72f2d669afbcbe19622fbbdd97b9a2f81ddb
hovercard-subject-tagissue:332747824
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/24536/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1d1e059c748b7cca22ce0741ecc8304301297ed648c5c090e799e5ad809a0a44/angular/angular/issues/24536
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1d1e059c748b7cca22ce0741ecc8304301297ed648c5c090e799e5ad809a0a44/angular/angular/issues/24536
og:image:altI'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJenPeleva
hostnamegithub.com
expected-hostnamegithub.com
None7129250e6854dcc7bfa46fc877bb154b96762b31e3fa82fdf0697c71f08bb32c
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
release3084c198d559e243975a7a7f61d0b80bcea2a724
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular/issues/24536#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F24536
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F24536
Sign up https://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/24536
Reloadhttps://github.com/angular/angular/issues/24536
Reloadhttps://github.com/angular/angular/issues/24536
Please reload this pagehttps://github.com/angular/angular/issues/24536
angular https://github.com/angular
angularhttps://github.com/angular/angular
Notifications https://github.com/login?return_to=%2Fangular%2Fangular
Fork 27.4k https://github.com/login?return_to=%2Fangular%2Fangular
Star 101k https://github.com/login?return_to=%2Fangular%2Fangular
Code https://github.com/angular/angular
Issues 980 https://github.com/angular/angular/issues
Pull requests 169 https://github.com/angular/angular/pulls
Discussions https://github.com/angular/angular/discussions
Actions https://github.com/angular/angular/actions
Projects https://github.com/angular/angular/projects
Security and quality 24 https://github.com/angular/angular/security
Insights https://github.com/angular/angular/pulse
Code https://github.com/angular/angular
Issues https://github.com/angular/angular/issues
Pull requests https://github.com/angular/angular/pulls
Discussions https://github.com/angular/angular/discussions
Actions https://github.com/angular/angular/actions
Projects https://github.com/angular/angular/projects
Security and quality https://github.com/angular/angular/security
Insights https://github.com/angular/angular/pulse
ng-content, slot and content elements don't work with nested Angular custom elementshttps://github.com/angular/angular/issues/24536#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
area: elementsIssues related to Angular Elementshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20elements%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/JenPeleva
JenPelevahttps://github.com/JenPeleva
on Jun 15, 2018https://github.com/angular/angular/issues/24536#issue-332747824
https://medium.com/@tomsu/building-web-components-with-angular-elements-746cd2a38d5bhttps://medium.com/@tomsu/building-web-components-with-angular-elements-746cd2a38d5b
https://stackblitz.com/edit/angular-6jmqbghttps://stackblitz.com/edit/angular-6jmqbg
https://stackblitz.com/edit/angular-uxthfzhttps://stackblitz.com/edit/angular-uxthfz
https://stackblitz.com/edit/angular-6jmqbghttps://stackblitz.com/edit/angular-6jmqbg
https://stackblitz.com/edit/angular-uxthfzhttps://stackblitz.com/edit/angular-uxthfz
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
area: elementsIssues related to Angular Elementshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20elements%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.