René's URL Explorer Experiment


Title: ng-content component in router-outlet · Issue #12447 · angular/angular · GitHub

Open Graph Title: ng-content component in router-outlet · Issue #12447 · angular/angular

X Title: ng-content component in router-outlet · Issue #12447 · angular/angular

Description: [x ] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md...

Open Graph Description: [x ] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/ang...

X Description: [x ] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.c...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng-content component in router-outlet","articleBody":"\u003c!--\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\n-->\n\n```\n[x ] bug report => search github for a similar issue or PR before submitting\n[ ] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\n\n\u003c!-- Describe how the bug manifests. -->\n\nI have a router-outlet inside a component like this\n\n```\n\u003capp-leftnavbar>\n  \u003crouter-outlet>\u003c/router-outlet>\n\u003c/app-leftnavbar>\n```\n\nWhat I want to do is use `\u003cng-content select=\".something\">` inside app-leftnavbar in order to split the html of the loaded component into the router in two things, but no matter how I try, ng-content select doesnt work inside. But if I leave it without selectors it displays the content properly (the whole component (not-split of course)). Even if its a normal component and not a router-outlet its the same problem\n\n**Expected behavior**\n\n\u003c!-- Describe what the behavior would be without the bug. -->\n\nI should be able to use \u003cng-content select=\"\"> since the loaded component into the router-outlet will be transformed to html.. and since normal \u003cng-content> (without select) works, I expect to be able to select as well.\n\n**Minimal reproduction of the problem with instructions**\n\n\u003c!--\nIf the current behavior is a bug or you can illustrate your feature request better with an example, \nplease provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\n-->\n\nCreate an angular component inside of another component and try to use `\u003cng-content select=\".something\">` in on the parent\n\n```\n\u003cparent>\n   \u003cchild>\u003c/child>\n\u003c/parent>\n```\n\nand inside parent use\n\n```\n\u003cng-content select=\".something\">\u003c/ng-content>\n```\n\nand\n\n```\n\u003cng-content select=\".somethingelse\">\u003c/ng-content>\n```\n\nand nothing will be shown. (Of course I have defined elements with the appropriate classes in `child`),\n\nIf used without selecting (just `\u003cng-content>\u003c/ng-content>` the component will be shown normally\n\n**Please tell us about your environment:**\n\n\u003c!-- Operating system, IDE, package manager, HTTP server, ... -->\n- **Angular version:** 2.0.0","author":{"url":"https://github.com/denkomanceski","@type":"Person","name":"denkomanceski"},"datePublished":"2016-10-21T20:50:40Z","url":"https://github.com/angular/angular/issues/12447"}

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:7f708215-3b06-6da3-77d9-b92ac1cd40cf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB32:29AEE8:1794767:1F62BD1:6B0142AC
html-safe-noncee341f5a949a99725cafa1212b6d12d68760b1f6eaa63d4f0244c6b95148df666
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjMyOjI5QUVFODoxNzk0NzY3OjFGNjJCRDE6NkIwMTQyQUMiLCJ2aXNpdG9yX2lkIjoiNTAyNjA5MDcxMTQ4NTg1ODQ3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3ad3cc1ee35610f9b3642640d16c01efd6d4d1b93d54eca08ebd9bf9abb3a885
hovercard-subject-tagissue:184566580
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/12447/issue_layout
twitter:imagehttps://opengraph.githubassets.com/25bfe7d07decf0fe028ebce9b0a1e6756c93f9b57b553b978129c583003a4907/angular/angular/issues/12447
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/25bfe7d07decf0fe028ebce9b0a1e6756c93f9b57b553b978129c583003a4907/angular/angular/issues/12447
og:image:alt[x ] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/ang...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedenkomanceski
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/12447#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F12447
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%2F12447
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/12447
Reloadhttps://github.com/angular/angular/issues/12447
Reloadhttps://github.com/angular/angular/issues/12447
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues836 (836)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/12447
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/12447
ng-content component in router-outlethttps://github.com/angular/angular/issues/12447#top
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
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
core: content projectionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20content%20projection%22
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/denkomanceski
denkomanceskihttps://github.com/denkomanceski
on Oct 21, 2016https://github.com/angular/angular/issues/12447#issue-184566580
Nexthttps://github.com/angular/angular/issues/12447?timeline_page=1
denkomanceskihttps://github.com/denkomanceski
on Oct 21, 2016https://github.com/angular/angular/issues/12447#event-832497425
vicbhttps://github.com/vicb
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
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
on Oct 23, 2016https://github.com/angular/angular/issues/12447#event-833118401
vsavkinhttps://github.com/vsavkin
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on Oct 31, 2016https://github.com/angular/angular/issues/12447#event-842633992
https://github.com/oliamb
oliambhttps://github.com/oliamb
on Dec 6, 2016https://github.com/angular/angular/issues/12447#issuecomment-265300909
https://plnkr.co/edit/bZVvrgIuIEaYaXEIlWe6https://plnkr.co/edit/bZVvrgIuIEaYaXEIlWe6
https://plnkr.co/edit/bZVvrgIuIEaYaXEIlWe6https://plnkr.co/edit/bZVvrgIuIEaYaXEIlWe6
https://plnkr.co/edit/u81vWPqx3rUOMGFUKAH6https://plnkr.co/edit/u81vWPqx3rUOMGFUKAH6
https://github.com/oliamb
oliambhttps://github.com/oliamb
on Dec 7, 2016https://github.com/angular/angular/issues/12447#issuecomment-265317735
https://plnkr.co/edit/AFmNnm7gbDztAG250aYp?p=previewhttps://plnkr.co/edit/AFmNnm7gbDztAG250aYp?p=preview
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
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 Apr 25, 2017https://github.com/angular/angular/issues/12447#event-1057317309
https://github.com/damsorian
damsorianhttps://github.com/damsorian
on Aug 30, 2017https://github.com/angular/angular/issues/12447#issuecomment-326063220
https://github.com/damsorian
damsorianhttps://github.com/damsorian
on Sep 29, 2017https://github.com/angular/angular/issues/12447#issuecomment-333153329
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Jan 23, 2018https://github.com/angular/angular/issues/12447#event-1437647556
https://github.com/Jowindebondt
Jowindebondthttps://github.com/Jowindebondt
on Apr 20, 2018https://github.com/angular/angular/issues/12447#issuecomment-383037019
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Apr 20, 2018https://github.com/angular/angular/issues/12447#issuecomment-383045412
@Jowindebondthttps://github.com/Jowindebondt
https://github.com/Jowindebondt
Jowindebondthttps://github.com/Jowindebondt
on Apr 20, 2018https://github.com/angular/angular/issues/12447#issuecomment-383046795
@mlc-mlapishttps://github.com/mlc-mlapis
https://github.com/gentoo90
gentoo90https://github.com/gentoo90
on Apr 29, 2018https://github.com/angular/angular/issues/12447#issuecomment-385236541
CDK Portalshttps://material.angular.io/cdk/portal
https://github.com/Flyrell
Flyrellhttps://github.com/Flyrell
on Sep 3, 2019https://github.com/angular/angular/issues/12447#issuecomment-527347052
@oliambhttps://github.com/oliamb
@gentoo90https://github.com/gentoo90
atscotthttps://github.com/atscott
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
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
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
on May 21, 2020https://github.com/angular/angular/issues/12447#event-3362375540
jelbournhttps://github.com/jelbourn
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
type: use-casehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20use-case%22
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on Oct 1, 2020https://github.com/angular/angular/issues/12447#event-3830252262
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/12447#event-6239501404
https://github.com/FabienDehopre
FabienDehoprehttps://github.com/FabienDehopre
on Jul 27, 2025https://github.com/angular/angular/issues/12447#issuecomment-3124708525
atscotthttps://github.com/atscott
duplicatehttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Aduplicate
ContentChildren doesn't get children created with NgTemplateOutlet #14842https://github.com/angular/angular/issues/14842
on Jul 28, 2025https://github.com/angular/angular/issues/12447#event-18844546487
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 28, 2025https://github.com/angular/angular/issues/12447#issuecomment-3230279892
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 Aug 28, 2025https://github.com/angular/angular/issues/12447#event-19379757713
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/12447
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/12447
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
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
core: content projectionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20content%20projection%22
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%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.