Title: [Feature Request] Recursive component discovery and injection · Issue #17267 · angular/angular · GitHub
Open Graph Title: [Feature Request] Recursive component discovery and injection · Issue #17267 · angular/angular
X Title: [Feature Request] Recursive component discovery and injection · Issue #17267 · angular/angular
Description: Right now we need to import all the components into a module's declarations array. It would be great if we could substitute this with declaring component children directly on the component. So suppose we are creating an
Open Graph Description: Right now we need to import all the components into a module's declarations array. It would be great if we could substitute this with declaring component children directly on the component. So supp...
X Description: Right now we need to import all the components into a module's declarations array. It would be great if we could substitute this with declaring component children directly on the component. So ...
Opengraph URL: https://github.com/angular/angular/issues/17267
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature Request] Recursive component discovery and injection","articleBody":"Right now we need to import all the components into a module's declarations array. It would be great if we could substitute this with declaring component children directly on the component. So suppose we are creating an `\u003capp-component>` that delegates to children that we are creating as we are iterating. \r\n\r\nIf we import the child components (Either from the NPM node_modules) or a relative location then they can be automatically discovered and injected into the container (Meta data for this automatically generated).\r\n\r\nSo within the `app.component.ts` directly import the `./hero-detail.component.ts` file, instead of doing it at the `app.module.ts` level. \r\n\r\nThis should eliminate the declarations array. I think it will cascade into other requirements such as having to explicitly import things like `RouterLink` inside a component that does routing, but I think that's a good thing.","author":{"url":"https://github.com/oleersoy","@type":"Person","name":"oleersoy"},"datePublished":"2017-06-06T18:24:11Z","url":"https://github.com/angular/angular/issues/17267"}
| 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:26cd7fe6-3eb6-4b2a-d50d-89fe9767916e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B73E:3A4875:CCC40F:11184ED:6B00FD07 |
| html-safe-nonce | 5a245a4d5f07367b013513f4ece1b1d926e3185df91d24ab4eee66c336966339 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzNFOjNBNDg3NTpDQ0M0MEY6MTExODRFRDo2QjAwRkQwNyIsInZpc2l0b3JfaWQiOiI1NTY4NzEwMzg4OTQ0MDY5MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f49f25e402e4d3819f8b52f07027309eb5eac77df48e90fbf8a9a03c8a25d182 |
| hovercard-subject-tag | issue:233981568 |
| 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/17267/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf79fc0b9a46d3afaae34b2738a09896a3eff3636888ad3071f313dba3375140/angular/angular/issues/17267 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf79fc0b9a46d3afaae34b2738a09896a3eff3636888ad3071f313dba3375140/angular/angular/issues/17267 |
| og:image:alt | Right now we need to import all the components into a module's declarations array. It would be great if we could substitute this with declaring component children directly on the component. So supp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oleersoy |
| 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