Title: Expose matched component inside EmptyOutletComponent · Issue #27696 · angular/angular · GitHub
Open Graph Title: Expose matched component inside EmptyOutletComponent · Issue #27696 · angular/angular
X Title: Expose matched component inside EmptyOutletComponent · Issue #27696 · angular/angular
Description: 🚀 feature request Relevant Package This feature request is for @angular/router Description First, big thanks for https://github.com//pull/23459 and fixing the issue of supporting lazy loaded aux routes. The introduction of the EmptyOutle...
Open Graph Description: 🚀 feature request Relevant Package This feature request is for @angular/router Description First, big thanks for https://github.com//pull/23459 and fixing the issue of supporting lazy loaded aux ro...
X Description: 🚀 feature request Relevant Package This feature request is for @angular/router Description First, big thanks for https://github.com//pull/23459 and fixing the issue of supporting lazy loaded aux ro...
Opengraph URL: https://github.com/angular/angular/issues/27696
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose matched component inside EmptyOutletComponent","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄 \r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🚀 feature request\r\n\r\n### Relevant Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages the are relevant for this feature request? -->\r\n\u003c!-- ✍️edit: --> This feature request is for @angular/router\r\n\r\n\r\n### Description\r\n\u003c!-- ✍️--> First, big thanks for https://github.com/angular/angular/pull/23459 and fixing the issue of supporting lazy loaded aux routes. The introduction of the EmptyOutletComponent indeed fixes the issue, however I noticed a missing capability, which is that we can no longer get reference to the *true* activated component. i.e. When using the (activate) event on router-outlet to get reference to the component instance in the outlet, these named outlets now return an EmptyOutletComponent (correctly) and there is no way to easily get the instance of the actual underlying activated component. It would be nice if we could additionally have a way to get a reference to the router matched component instead of or in addition to the empty outlet component.\r\n\r\n\r\n### Describe the solution you'd like\r\n\u003c!-- ✍️--> Simply emit the underlying router matched component INSTEAD of the the EmptyOutletComponent so that developers using the (activate) event on their named outlet will get the expected component instead of an EmptyOutletComponent reference.\r\n\r\n\r\n\r\n### Describe alternatives you've considered\r\n\u003c!-- ✍️--> An alternative solution would be to simply merge activate events from the router outlet inside the empty outlet component into the man named outlet's activate events and have developers filter for the one that they want (e.g. type of component != EmptyOutletComponent)\r\n","author":{"url":"https://github.com/daem0ndev","@type":"Person","name":"daem0ndev"},"datePublished":"2018-12-16T17:38:25Z","url":"https://github.com/angular/angular/issues/27696"}
| 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:cd6dbf7d-3462-2497-f99a-06bf0b3a6a41 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C824:1F65:21FF9D:2AFDCC:6B011BDA |
| html-safe-nonce | b18b2a6752764397e5c82940c47801b68f3fecb6bc940c4fe2ba6030d35c72ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODI0OjFGNjU6MjFGRjlEOjJBRkRDQzo2QjAxMUJEQSIsInZpc2l0b3JfaWQiOiI1MTM4NzU5OTc0MzgxNDkzMjEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 560ced035fbf29640d71d8d0ad0b8c53c008118db2b22a58334d2b2e9b90231e |
| hovercard-subject-tag | issue:391488678 |
| 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/27696/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a2f2042c01c65d54f753aa1cf7b8e242f7d19ae9f5e8e2e63146bc7c191bee71/angular/angular/issues/27696 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a2f2042c01c65d54f753aa1cf7b8e242f7d19ae9f5e8e2e63146bc7c191bee71/angular/angular/issues/27696 |
| og:image:alt | 🚀 feature request Relevant Package This feature request is for @angular/router Description First, big thanks for https://github.com//pull/23459 and fixing the issue of supporting lazy loaded aux ro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daem0ndev |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width