René's URL Explorer Experiment


Title: Dynamic Loading NgModule Support · Issue #9343 · angular/angular-cli · GitHub

Open Graph Title: Dynamic Loading NgModule Support · Issue #9343 · angular/angular-cli

X Title: Dynamic Loading NgModule Support · Issue #9343 · angular/angular-cli

Description: Right now, there's only one official Angular CLI way to dynamically load NgModule; through the router configuration and the discovery process for lazy routes. This discussion is not about dynamic loading of TypeScript files, which works ...

Open Graph Description: Right now, there's only one official Angular CLI way to dynamically load NgModule; through the router configuration and the discovery process for lazy routes. This discussion is not about dynamic l...

X Description: Right now, there's only one official Angular CLI way to dynamically load NgModule; through the router configuration and the discovery process for lazy routes. This discussion is not about dynam...

Opengraph URL: https://github.com/angular/angular-cli/issues/9343

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dynamic Loading NgModule Support","articleBody":"Right now, there's only one official Angular CLI way to dynamically load NgModule; through the router configuration and the discovery process for lazy routes.\r\n\r\n**This discussion is not about dynamic loading of TypeScript files, which works properly already, using the `import()` keyword. This is exclusively when splitting code at the NgModule boundary, which isn't currently supported.**\r\n\r\nThis has as a consequence that people have to use a fake route if they want to split at the NgModule boundary; e.g. AIO [here](https://github.com/angular/angular/blob/master/aio/src/app/app.module.ts#L152). Although this work, it's a bad pattern that users shouldn't have to do.\r\n\r\nThe current suggested design is:\r\n\r\n1. Allow users to add entries to the lazy route from the configuration to emulate the ROUTES provider, then\r\n2. Use `NgModuleFactoryLoader` (see example in AIO [here](https://github.com/angular/angular/blob/c8a1a14b87e5907458e8e87021e47f9796cb3257/aio/src/app/embed-components/embed-components.service.ts#L128)) to load the module, which supports both JIT and AOT.\r\n\r\nAlternative design was to add refactoring/support of `import()` keyword, with some annotation support to tell if we should rename to import on AOT. This would require changes in the Angular Compiler which would only make this compatible with Angular 6, while the solution above is fully compatible with Angular 5.\r\n\r\n/cc @IgorMinar @clydin @filipesilva @robwormald ","author":{"url":"https://github.com/hansl","@type":"Person","name":"hansl"},"datePublished":"2018-01-23T20:19:22Z","url":"https://github.com/angular/angular-cli/issues/9343"}

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:1c81e018-e828-0189-2854-80f811264446
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id89AE:62283:B32C5D:EF2613:6B00EE97
html-safe-nonce64f1fa1eb43d2f59267040ec9f9a72b9f448edd10b4c6e5c53fe0f009ae142b0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUFFOjYyMjgzOkIzMkM1RDpFRjI2MTM6NkIwMEVFOTciLCJ2aXNpdG9yX2lkIjoiNjAzMDE4OTkzNzEzMzk0MDM3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3796bdd534f9462976636340dd15ba26447a73435a44d68f47af563aa08bbf6a
hovercard-subject-tagissue:290979228
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-cli/9343/issue_layout
twitter:imagehttps://opengraph.githubassets.com/533841a461a6083047b735f2918546b2df6a88635de9dd113b25269053484939/angular/angular-cli/issues/9343
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/533841a461a6083047b735f2918546b2df6a88635de9dd113b25269053484939/angular/angular-cli/issues/9343
og:image:altRight now, there's only one official Angular CLI way to dynamically load NgModule; through the router configuration and the discovery process for lazy routes. This discussion is not about dynamic l...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehansl
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
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-cli/issues/9343#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F9343
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-cli%2Fissues%2F9343
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-cli
Reloadhttps://github.com/angular/angular-cli/issues/9343
Reloadhttps://github.com/angular/angular-cli/issues/9343
Reloadhttps://github.com/angular/angular-cli/issues/9343
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/9343
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/9343
Dynamic Loading NgModule Supporthttps://github.com/angular/angular-cli/issues/9343#top
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
Backloghttps://github.com/angular/angular-cli/milestone/12
https://github.com/hansl
hanslhttps://github.com/hansl
on Jan 23, 2018https://github.com/angular/angular-cli/issues/9343#issue-290979228
herehttps://github.com/angular/angular/blob/master/aio/src/app/app.module.ts#L152
herehttps://github.com/angular/angular/blob/c8a1a14b87e5907458e8e87021e47f9796cb3257/aio/src/app/embed-components/embed-components.service.ts#L128
@IgorMinarhttps://github.com/IgorMinar
@clydinhttps://github.com/clydin
@filipesilvahttps://github.com/filipesilva
@robwormaldhttps://github.com/robwormald
Nexthttps://github.com/angular/angular-cli/issues/9343?timeline_page=1
hanslhttps://github.com/hansl
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
type: discussionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20discussion%22
on Jan 23, 2018https://github.com/angular/angular-cli/issues/9343#event-1438151475
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Jan 23, 2018https://github.com/angular/angular-cli/issues/9343#issuecomment-359918250
#4541https://github.com/angular/angular-cli/issues/4541
@christopherthielenhttps://github.com/christopherthielen
filipesilvahttps://github.com/filipesilva
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
comp: cli/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22comp%3A%20cli%2Fbuild%22
on Jan 25, 2018https://github.com/angular/angular-cli/issues/9343#event-1441314872
hanslhttps://github.com/hansl
type: discussionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20discussion%22
on Jan 30, 2018https://github.com/angular/angular-cli/issues/9343#event-1449420194
https://github.com/ValentinFunk
ValentinFunkhttps://github.com/ValentinFunk
on Feb 24, 2018https://github.com/angular/angular-cli/issues/9343#issuecomment-368237611
3be17e7https://github.com/angular/angular-cli/commit/3be17e7
https://github.com/khaled-ansary
khaled-ansaryhttps://github.com/khaled-ansary
on Feb 26, 2018https://github.com/angular/angular-cli/issues/9343#issuecomment-368434378
@hanslhttps://github.com/hansl
issuehttps://github.com/angular/angular-cli/issues/7703
https://github.com/ManuelEssmeister
ManuelEssmeisterhttps://github.com/ManuelEssmeister
on Feb 27, 2018https://github.com/angular/angular-cli/issues/9343#issuecomment-368978641
@khaled-ansaryhttps://github.com/khaled-ansary
filipesilvahttps://github.com/filipesilva
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
comp: cli/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22comp%3A%20cli%2Fbuild%22
on Jun 8, 2018https://github.com/angular/angular-cli/issues/9343#event-1670792717
https://github.com/mpicard
mpicardhttps://github.com/mpicard
on Jul 1, 2018https://github.com/angular/angular-cli/issues/9343#issuecomment-401631998
https://github.com/pshurygin
pshuryginhttps://github.com/pshurygin
on Nov 16, 2018https://github.com/angular/angular-cli/issues/9343#issuecomment-439344232
https://github.com/LayZeeDK
LayZeeDKhttps://github.com/LayZeeDK
on Nov 16, 2018https://github.com/angular/angular-cli/issues/9343#issuecomment-439345350
Angular Ivy by example | Jason Aden | AngularConnect 2018 (timestamped)https://youtu.be/MMPl9wHzmS4?t=738
@IgorMinarhttps://github.com/IgorMinar
https://github.com/webcat12345
webcat12345https://github.com/webcat12345
on Nov 27, 2018https://github.com/angular/angular-cli/issues/9343#issuecomment-442185028
https://github.com/aaronfrost
aaronfrosthttps://github.com/aaronfrost
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-457971967
https://www.npmjs.com/package/@herodevs/lazy-afhttps://www.npmjs.com/package/@herodevs/lazy-af
https://github.com/LayZeeDK
LayZeeDKhttps://github.com/LayZeeDK
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-457989404
SystemJsNgModuleLoaderhttps://angular.io/api/core/SystemJsNgModuleLoader
NgModuleFactoryLoaderhttps://angular.io/api/core/NgModuleFactoryLoader
https://github.com/aaronfrost
aaronfrosthttps://github.com/aaronfrost
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-457996206
@LayZeeDKhttps://github.com/LayZeeDK
https://github.com/ova2
ova2https://github.com/ova2
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-457997732
@aaronfrosthttps://github.com/aaronfrost
https://github.com/iamrakesh
iamrakeshhttps://github.com/iamrakesh
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-458044465
@aaronfrosthttps://github.com/aaronfrost
https://github.com/denisyilmaz
denisyilmazhttps://github.com/denisyilmaz
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-458049523
@iamrakeshhttps://github.com/iamrakesh
https://github.com/iamrakesh
iamrakeshhttps://github.com/iamrakesh
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-458122042
@denisyilmazhttps://github.com/denisyilmaz
https://github.com/aaronfrost
aaronfrosthttps://github.com/aaronfrost
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-458226150
@ova2https://github.com/ova2
https://github.com/ova2
ova2https://github.com/ova2
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-458268272
@aaronfrosthttps://github.com/aaronfrost
https://github.com/aaronfrost
aaronfrosthttps://github.com/aaronfrost
on Jan 28, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-458304081
https://github.com/nasreddineskandrani
nasreddineskandranihttps://github.com/nasreddineskandrani
on Jan 30, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-458867918
@aaronfrosthttps://github.com/aaronfrost
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Oct 9, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-539921158
https://angular.io/guide/deprecations#loadchildren-string-syntaxhttps://angular.io/guide/deprecations#loadchildren-string-syntax
angular-cli/packages/ngtools/webpack/src/transformers/import_factory.tshttps://github.com/angular/angular-cli/blob/0d70565f9d80f1d765622eb8c8b2c3c701723599/packages/ngtools/webpack/src/transformers/import_factory.ts#L16-L55
0d70565https://github.com/angular/angular-cli/commit/0d70565f9d80f1d765622eb8c8b2c3c701723599
Ivy projectshttps://angular.io/guide/ivy
filipesilvahttps://github.com/filipesilva
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 9, 2019https://github.com/angular/angular-cli/issues/9343#event-2698316972
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 9, 2019https://github.com/angular/angular-cli/issues/9343#issuecomment-552077001
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 9, 2019https://github.com/angular/angular-cli/issues/9343#event-2785151474
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/9343
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/9343
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
BacklogNo due datehttps://github.com/angular/angular-cli/milestone/12
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.