Title: Pluggable NgModules with AoT compatibility · Issue #13218 · angular/angular · GitHub
Open Graph Title: Pluggable NgModules with AoT compatibility · Issue #13218 · angular/angular
X Title: Pluggable NgModules with AoT compatibility · Issue #13218 · angular/angular
Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...
Open Graph Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request...
X Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not su...
Opengraph URL: https://github.com/angular/angular/issues/13218
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pluggable NgModules with AoT compatibility","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...** (check one with \"x\")\r\n```\r\n[ ] bug report => search github for a similar issue or PR before submitting\r\n[x] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\nI'll preface this by saying I *think* I have a basic understanding of *some* of the technical challenges here - I expect its a much bigger problem space. Essentially I'm trying to recreate our server side development process where teams work against agreed contracts and their code is consumed as optional plugins into the core system. I'm specifically interested in AoT compatibility here because of our observed application performance increases. \r\n\r\n**Current behavior**\r\nWhen using AoT, Angular 2 currently supports monolithic applications where there is a clear compile time coherence between all NgModules.\r\n\r\n**Expected behavior** (Expected is a bit strong here - desired?)\r\nI am requesting techniques either through additional documentation or new supported features which allow for AoT compiled NgModules to be registered at runtime into the DI container. Furthermore, NgModules registered at runtime can be imported by other NgModules such that the exports of the module are available for use. Routers treat these as lazy loaded modules so routes become part of the route tree.\r\n\r\n***Application composition:***\r\n****Main application:****\r\n- Built by core application team.\r\n- Contains core application logic as well as shared vendor libraries.\r\n- Contains call to bootstrapModuleFactory. Application boots from here.\r\n\r\n****Plugin 1..n:****\r\n- Built by auxiliary teams.\r\n- Teams need to be able to compile the plugin for production without duplicating vendor code.\r\n- Plugins register themselves with core application at runtime.\r\n- Plugins should be able to add additional multi provider entries to existing multi providers.\r\n- Plugins should be able to register additional forChild routes.\r\n\r\nCurrently using TypeScript and Webpack 2 with ngtools/webpack for AoT.","author":{"url":"https://github.com/matt-psaltis","@type":"Person","name":"matt-psaltis"},"datePublished":"2016-12-03T12:20:45Z","url":"https://github.com/angular/angular/issues/13218"}
| 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:92641619-ac29-4f0d-fb40-17cd258f4700 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B444:33D24F:9BCEA8:C977DE:6B00F39A |
| html-safe-nonce | f167db86138c387ce96b58a1342eea582304fa039186146718d9494619ff11ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDQ0OjMzRDI0Rjo5QkNFQTg6Qzk3N0RFOjZCMDBGMzlBIiwidmlzaXRvcl9pZCI6IjczMTM5MzIxODk5MTIwNjkwMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 412f17e8ff57b9d106e2d8fedb7813ca956cca2354066d4ad3d9b620a638891c |
| hovercard-subject-tag | issue:193283819 |
| 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/13218/issue_layout |
| twitter:image | https://opengraph.githubassets.com/32073e7e37f993093b56769a0823fee72aa4984ebd1edd4232624f989f8e5dc0/angular/angular/issues/13218 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/32073e7e37f993093b56769a0823fee72aa4984ebd1edd4232624f989f8e5dc0/angular/angular/issues/13218 |
| og:image:alt | I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matt-psaltis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width