Title: Discovering and loading NgModule at runtime. · Issue #18053 · angular/angular · GitHub
Open Graph Title: Discovering and loading NgModule at runtime. · Issue #18053 · angular/angular
X Title: Discovering and loading NgModule at runtime. · Issue #18053 · angular/angular
Description: Feature Request Current behavior It is not possible to load dynamicall NgModules that have not been compiled at the same time of the whole application. Angular-cli and webpack currently requier all code and modules used by the applicatio...
Open Graph Description: Feature Request Current behavior It is not possible to load dynamicall NgModules that have not been compiled at the same time of the whole application. Angular-cli and webpack currently requier all...
X Description: Feature Request Current behavior It is not possible to load dynamicall NgModules that have not been compiled at the same time of the whole application. Angular-cli and webpack currently requier all...
Opengraph URL: https://github.com/angular/angular/issues/18053
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Discovering and loading NgModule at runtime.","articleBody":"## Feature Request\r\n## Current behavior\r\nIt is not possible to load dynamicall NgModules that have not been compiled at the same time of the whole application.\r\nAngular-cli and webpack currently requier all code and modules used by the application in order to best optimize the production files. It does split the application into chunks corresponding to dynamic NgModules, but chunks are closely linked together.\r\n\r\n## Expected behavior\r\nThere should be an Option in angular-cli/webpack that allow independancy and reuse of chunks it generates even though final result is less optimal regarding code size and optimization. \r\n\r\nI believe, Dynamic Loading of NgModule has been designed with this idea in mind since it doesn't requier NgModules to be statically imported in the router. This idea seem to have been lost in the race for perfect optimization (which is great by the way).\r\n\r\n## What is the motivation / use case for changing the behavior?\r\nActual trend is to do MicroService that encapsulate complete buisness behaviour and interface. This allows to developp and upgrade part of large application without the need to re-compile and redeploy the wole lot. Angular should take this into account and allow NgModules exposed in different micro-serviceto be discovered and loader at run time.\r\n\r\n","author":{"url":"https://github.com/pdelorme","@type":"Person","name":"pdelorme"},"datePublished":"2017-07-11T09:54:27Z","url":"https://github.com/angular/angular/issues/18053"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0ea4fb5c-251f-99bb-18ef-7c461f9b2db5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC76:172B92:C0C563:102F40A:6B00F91D |
| html-safe-nonce | b91012afd8584959be6e2f034c4c2e81b2732f5b5ac6fbc7ab7b5cfb0ada5b0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzc2OjE3MkI5MjpDMEM1NjM6MTAyRjQwQTo2QjAwRjkxRCIsInZpc2l0b3JfaWQiOiIxNzM0OTYyMzEwMjgxMjMwNjIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c20bdee40c88adc852d52fcf6926dd788108295c5f0636f00f1c8ff476fe9064 |
| hovercard-subject-tag | issue:241990885 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/18053/issue_layout |
| twitter:image | https://opengraph.githubassets.com/93e07fa57343d7612961d31547c405265fdd0de9ccccd40d1a6ca705513b9b1f/angular/angular/issues/18053 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/93e07fa57343d7612961d31547c405265fdd0de9ccccd40d1a6ca705513b9b1f/angular/angular/issues/18053 |
| og:image:alt | Feature Request Current behavior It is not possible to load dynamicall NgModules that have not been compiled at the same time of the whole application. Angular-cli and webpack currently requier all... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pdelorme |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width