René's URL Explorer Experiment


Title: Auto module declaration for lazy loaded components · Issue #35545 · angular/angular · GitHub

Open Graph Title: Auto module declaration for lazy loaded components · Issue #35545 · angular/angular

X Title: Auto module declaration for lazy loaded components · Issue #35545 · angular/angular

Description: 🚀 feature request Relevant Package This feature request is for @angular/core Description When loading component lazily (or just creating component dynamically) and you don't have it declared anywhere in modules, you can't access any feat...

Open Graph Description: 🚀 feature request Relevant Package This feature request is for @angular/core Description When loading component lazily (or just creating component dynamically) and you don't have it declared anywhe...

X Description: 🚀 feature request Relevant Package This feature request is for @angular/core Description When loading component lazily (or just creating component dynamically) and you don't have it declared an...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Auto module declaration for lazy loaded components","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄 \r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🚀 feature request\r\n\r\n### Relevant Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages the are relevant for this feature request? -->\r\n\u003c!-- ✍️edit: --> This feature request is for @angular/core\r\n\r\n\r\n### Description\r\n\u003c!-- ✍️--> When loading component lazily (or just creating component dynamically) and you don't have it declared anywhere in modules, you can't access any features from this component, unless you load them also lazily in component or you create workaround module for this specific component to specify what imports you want to use in this component.\r\n\r\n\r\n### Why I need this\r\nMain problem for me is that I have many components that are dynamically created and inserted. They are all declared in one file and then declared in also one module which has some shared module imported (This SharedModule is something I need in loaded components too). Now since I don't have to write the component in entryComponents and also it is not necessary to write it in declarations either, I want to remove this file containing the set of components.\r\n\r\n\r\n### Describe the solution you'd like\r\n\u003c!-- ✍️--> I'm not very familiar with angular source code, so I can't really make clear suggestions, but I think it will be possible since ivy now is much more dynamic to add features to component instance when calling ViewContainerRef.createComponent. So I think it would be wonderful if it was possible to set module same as caller module for created component too, of course if it isn't already declared in any of the modules (I hope ViewContainerRef somehow knows in which module opener component is declared).\r\n\r\n\r\n### Describe alternatives you've considered\r\n\u003c!-- ✍️-->\r\nThe way to fix my problem is to declare all of those components into their own logical modules, or create separate modules for each of the components, but that's quite extra work to do and I don't understand why this should be required when I think it will be a lot easier to give those components opener's module (Or if it is possible to somehow find workaround to add module on my own when calling createComponent please let me know how).\r\n","author":{"url":"https://github.com/levani132","@type":"Person","name":"levani132"},"datePublished":"2020-02-19T08:40:26Z","url":"https://github.com/angular/angular/issues/35545"}

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:37b9b056-ea41-7ba1-3333-d53c7f862e15
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB780:1D86C4:B4F67E:E70805:6B00F88D
html-safe-nonce7394ce186b8f0e220c93825abf73d42ea8260148a1099026fbcd91ab9a7075be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzgwOjFEODZDNDpCNEY2N0U6RTcwODA1OjZCMDBGODhEIiwidmlzaXRvcl9pZCI6Ijc4MTQ5ODMxODIwMzc2MTI2ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbef791055160780db5831ac5b5720b5e8b574c4cb258d4cb1b92cd99f6755b08
hovercard-subject-tagissue:567404126
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/35545/issue_layout
twitter:imagehttps://opengraph.githubassets.com/09494b68db820286a564261fc9c65dc3beb781bc904928dca4116a978045bbbd/angular/angular/issues/35545
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09494b68db820286a564261fc9c65dc3beb781bc904928dca4116a978045bbbd/angular/angular/issues/35545
og:image:alt🚀 feature request Relevant Package This feature request is for @angular/core Description When loading component lazily (or just creating component dynamically) and you don't have it declared anywhe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelevani132
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/35545#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F35545
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%2F35545
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/35545
Reloadhttps://github.com/angular/angular/issues/35545
Reloadhttps://github.com/angular/angular/issues/35545
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/35545
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/35545
Auto module declaration for lazy loaded componentshttps://github.com/angular/angular/issues/35545#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: NgModulehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20NgModule%22
core: directive matchinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20directive%20matching%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/levani132
levani132https://github.com/levani132
on Feb 19, 2020https://github.com/angular/angular/issues/35545#issue-567404126
alxhubhttps://github.com/alxhub
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on Feb 19, 2020https://github.com/angular/angular/issues/35545#event-3053618726
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Feb 19, 2020https://github.com/angular/angular/issues/35545#event-3053618778
https://github.com/montella1507
montella1507https://github.com/montella1507
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588965765
@componenthttps://github.com/component
@NgModulehttps://github.com/NgModule
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588971795
@montella1507https://github.com/montella1507
https://github.com/montella1507
montella1507https://github.com/montella1507
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588972278
@mlc-mlapishttps://github.com/mlc-mlapis
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588972667
@montella1507https://github.com/montella1507
https://github.com/montella1507
montella1507https://github.com/montella1507
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588980961
city-quiz.ziphttps://github.com/angular/angular/files/4230512/city-quiz.zip
https://github.com/levani132
levani132https://github.com/levani132
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588982772
@montella1507https://github.com/montella1507
https://github.com/montella1507
montella1507https://github.com/montella1507
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588983736
@levani132https://github.com/levani132
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588989611
@levani132https://github.com/levani132
https://github.com/levani132
levani132https://github.com/levani132
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588989730
@montella1507https://github.com/montella1507
https://github.com/levani132
levani132https://github.com/levani132
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588990484
@levani132https://github.com/levani132
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588994013
@levani132https://github.com/levani132
https://angular.io/api/core/ReflectiveInjectorhttps://angular.io/api/core/ReflectiveInjector
https://github.com/levani132
levani132https://github.com/levani132
on Feb 20, 2020https://github.com/angular/angular/issues/35545#issuecomment-588995436
@mlc-mlapishttps://github.com/mlc-mlapis
mheveryhttps://github.com/mhevery
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Mar 5, 2020https://github.com/angular/angular/issues/35545#event-3103305371
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Mar 5, 2020https://github.com/angular/angular/issues/35545#event-3103305433
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
core: directive matchinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20directive%20matching%22
core: NgModulehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20NgModule%22
on Mar 24, 2020https://github.com/angular/angular/issues/35545#event-3158306949
https://github.com/jelbourn
jelbournhttps://github.com/jelbourn
on Oct 9, 2020https://github.com/angular/angular/issues/35545#issuecomment-706403288
#18093https://github.com/angular/angular/issues/18093
jelbournhttps://github.com/jelbourn
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 9, 2020https://github.com/angular/angular/issues/35545#event-3861808173
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 9, 2020https://github.com/angular/angular/issues/35545#issuecomment-724129367
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 Nov 9, 2020https://github.com/angular/angular/issues/35545#event-3974703290
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/35545
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/35545
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: NgModulehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20NgModule%22
core: directive matchinghttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20directive%20matching%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%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.