Title: Lazy loaded module in named outlet throws error · Issue #12842 · angular/angular · GitHub
Open Graph Title: Lazy loaded module in named outlet throws error · Issue #12842 · angular/angular
X Title: Lazy loaded module in named outlet throws error · Issue #12842 · angular/angular
Description: [x] bug report [ ] feature request [ ] support request Current behavior Navigating to route with lazy loaded module in named outlet throws error: Uncaught (in promise): TypeError: Cannot read property 'routes' of undefined Expected behav...
Open Graph Description: [x] bug report [ ] feature request [ ] support request Current behavior Navigating to route with lazy loaded module in named outlet throws error: Uncaught (in promise): TypeError: Cannot read prope...
X Description: [x] bug report [ ] feature request [ ] support request Current behavior Navigating to route with lazy loaded module in named outlet throws error: Uncaught (in promise): TypeError: Cannot read prope...
Opengraph URL: https://github.com/angular/angular/issues/12842
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Lazy loaded module in named outlet throws error","articleBody":"[x] bug report \n[ ] feature request\n[ ] support request \n\n**Current behavior**\nNavigating to route with lazy loaded module in named outlet throws error: \n\n> Uncaught (in promise): TypeError: Cannot read property 'routes' of undefined\n\n**Expected behavior**\nNavigating to route with lazy loaded module in named outlet without errors.\n\n**Minimal reproduction of the problem with instructions**\nWhen I have configured my routes with named outlet and want to have lazy loaded module in that outlet. \n\n```TypeScript\nexport const routes: Routes = [\n { \n path: '',\n component: AppComponent,\n children: [\n {\n path: '',\n loadChildren: \"app/home/home.module#HomeModule\"\n }, {\n path: '',\n loadChildren: \"app/about/about.module#AboutModule\",\n outlet: \"about\"\n }\n ]\n }\n];\n```\nHere is the plnkr to demonstrate the behavior: http://plnkr.co/edit/nK9kJYdakXILZU0UKFrP?p=preview \n(Anything is displayed because of error)\n\n**What is the motivation / use case for changing the behavior?**\nUsing lazy loaded modules in named outlets.\n\n\nPlease tell us about your environment:\n\nAngular version: 2.0.X\n\nBrowser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\n\nLanguage: [all | TypeScript X.X | ES6/7 | ES5]\n\nNode (for AoT issues): node --version =","author":{"url":"https://github.com/molcik","@type":"Person","name":"molcik"},"datePublished":"2016-11-13T09:34:07Z","url":"https://github.com/angular/angular/issues/12842"}
| 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:52a0aa1b-eaea-6cd9-4abc-01d31778be00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81B6:117C62:CEFBD2:11582F7:6B00FFAB |
| html-safe-nonce | 7280637d79c47dc2484f8d63eef33d6e2ab72e32d43cf3785203e84b064f4f80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUI2OjExN0M2MjpDRUZCRDI6MTE1ODJGNzo2QjAwRkZBQiIsInZpc2l0b3JfaWQiOiI0ODE3Njk2NDQ1ODU3NTk1MzA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ab1bfda2ffd511db3d22956bcb20ea282e47007f9c724ec1901bddb50f15b3af |
| hovercard-subject-tag | issue:188961122 |
| 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/12842/issue_layout |
| twitter:image | https://opengraph.githubassets.com/674820a11beea57fa656ea265f0d7722a25a9f55ed1480bff45f39cef71be045/angular/angular/issues/12842 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/674820a11beea57fa656ea265f0d7722a25a9f55ed1480bff45f39cef71be045/angular/angular/issues/12842 |
| og:image:alt | [x] bug report [ ] feature request [ ] support request Current behavior Navigating to route with lazy loaded module in named outlet throws error: Uncaught (in promise): TypeError: Cannot read prope... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | molcik |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width