Title: Auxiliary route from a lazy loaded module · Issue #13807 · angular/angular · GitHub
Open Graph Title: Auxiliary route from a lazy loaded module · Issue #13807 · angular/angular
X Title: Auxiliary route from a lazy loaded module · Issue #13807 · angular/angular
Description: I'm submitting a ... (check one with "x") [ x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/a...
Open Graph Description: I'm submitting a ... (check one with "x") [ x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support reques...
X Description: I'm submitting a ... (check one with "x") [ x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not s...
Opengraph URL: https://github.com/angular/angular/issues/13807
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Auxiliary route from a lazy loaded module","articleBody":"**I'm submitting a ...** (check one with \"x\")\r\n```\r\n[ x] bug report => search github for a similar issue or PR before submitting\r\n[ ] 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\n**Current behavior**\r\n\u003c!-- Describe how the bug manifests. -->\r\nI do have a lazy loaded module which loads by default `LazyLoadedComponent` when I go to `/lazy`. So far, it's OK.\r\n\r\nThis component contains 2 router-outlet :\r\n\r\n```\r\n\u003crouter-outlet>\u003c/router-outlet>\r\n\u003crouter-outlet name=\"aux\">\u003c/router-outlet>\r\n```\r\n\r\nAnd the `LazyLoadedModule` has the following routes :\r\n\r\n```\r\nconst routes = [\r\n {\r\n path: '',\r\n component: LazyLoadedComponent,\r\n children: [\r\n {\r\n path: '',\r\n component: NonAuxComponent\r\n },\r\n {\r\n path: '',\r\n component: AuxComponent,\r\n outlet: 'aux'\r\n }\r\n ]\r\n }\r\n];\r\n```\r\n\r\nWhen I go to `/lazy` I do have the 3 components loaded as expected.\r\nBut, if I want to change the path to display the `AuxComponent` like that : \r\n\r\n```\r\n{\r\n path: 'auxpath',\r\n component: AuxComponent,\r\n outlet: 'aux'\r\n}\r\n```\r\n\r\nAnd I try to go to `/lazy(aux:auxpath)` it's not working.\r\n\r\nI also tried to hit that URL using the `routerLink` like that :\r\n\r\n \u003ca [routerLink]=\"[{ outlets: { aux: 'auxpath' } }]\">Load an auxiliary route\u003c/a>\r\n\r\nBut it's not working either.\r\n\r\n\r\n\r\nIs this a bug with the router ? Is it just me missing out something here?\r\n\r\nYou can check out this [Plunkr](http://plnkr.co/edit/TiwzIoR8t57yRrx8zpaQ?p=preview) to make your own tests.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n[Plunkr](http://plnkr.co/edit/TiwzIoR8t57yRrx8zpaQ?p=preview) :\r\n- Click on \"Demo (click to lazy load the module)\"\r\n- Once the module is loaded, click on \"Load an auxiliary route\"\r\n- The non auxiliary component is well displayed, the auxiliary component is not displayed\r\n\r\n**Please tell us about your environment:**\r\n\u003c!-- Operating system, IDE, package manager, HTTP server, ... -->\r\nUbuntu 16.10\r\nVSC\r\nYarn\r\n(But as this is also happening on Plunkr, not sure it's relevant).\r\n\r\n* **Angular version:** 2.0.X\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version -->\r\nv2.4.1 (the one used on Plunkr)\r\n\r\n* **Browser:** [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 ]\r\n\u003c!-- All browsers where this could be reproduced -->\r\n Chrome\r\n\r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\nTypeScript\r\n\r\n* **Node (for AoT issues):** `node --version` = \r\nv6.8.0","author":{"url":"https://github.com/maxime1992","@type":"Person","name":"maxime1992"},"datePublished":"2017-01-06T07:58:26Z","url":"https://github.com/angular/angular/issues/13807"}
| 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:be3bc377-ffcc-5d5c-d11c-d239e0b158af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDDE:2D40DE:1DE393:25DC4E:6B00FCDE |
| html-safe-nonce | f26e62eb44897323d8d5c85957717b1b433da40a66641998ca82c4f2740bd80e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRERFOjJENDBERToxREUzOTM6MjVEQzRFOjZCMDBGQ0RFIiwidmlzaXRvcl9pZCI6IjM5NzY4MDk3NTI3MzM3NDQzNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0a37083cdf9eac00aa3ef761c1b6a1d4f39bcc2080e8bc8e5e81c6b646378196 |
| hovercard-subject-tag | issue:199143956 |
| 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/13807/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1469e39e0b7275e874ddd7aa3ef0831a19c82326614018cf2ba2f81a5565d9c4/angular/angular/issues/13807 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1469e39e0b7275e874ddd7aa3ef0831a19c82326614018cf2ba2f81a5565d9c4/angular/angular/issues/13807 |
| og:image:alt | I'm submitting a ... (check one with "x") [ x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support reques... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxime1992 |
| 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