Title: [Feature Request] Provide Default Constructor Injection Without Configuration Boilerplate · Issue #17188 · angular/angular · GitHub
Open Graph Title: [Feature Request] Provide Default Constructor Injection Without Configuration Boilerplate · Issue #17188 · angular/angular
X Title: [Feature Request] Provide Default Constructor Injection Without Configuration Boilerplate · Issue #17188 · angular/angular
Description: If we have a component that injects a service: constructor(private todoDataService: TodoDataService) { } Then default the Angular bootstrapping / DI Factory to automatically create an inject this service as a singleton without further co...
Open Graph Description: If we have a component that injects a service: constructor(private todoDataService: TodoDataService) { } Then default the Angular bootstrapping / DI Factory to automatically create an inject this s...
X Description: If we have a component that injects a service: constructor(private todoDataService: TodoDataService) { } Then default the Angular bootstrapping / DI Factory to automatically create an inject this s...
Opengraph URL: https://github.com/angular/angular/issues/17188
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature Request] Provide Default Constructor Injection Without Configuration Boilerplate","articleBody":"If we have a component that injects a service:\r\n\r\n```js\r\n constructor(private todoDataService: TodoDataService) {\r\n }\r\n```\r\n\r\nThen default the Angular bootstrapping / DI Factory to automatically create an inject this service as a singleton without further configuration. In other words we don't have to tell Angular that it needs to create a TodoDataService singleton. It does it automatically based on the decorators it finds in the application code. If the designer needs to they can override, but if not this just works.\r\n\r\nSpring currently does this: https://spring.io/blog/2016/03/04/core-container-refinements-in-spring-framework-4-3","author":{"url":"https://github.com/oleersoy","@type":"Person","name":"oleersoy"},"datePublished":"2017-06-02T20:54:37Z","url":"https://github.com/angular/angular/issues/17188"}
| 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:27c27526-2be7-d4ca-4f0d-313c2d0a490d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9688:1D86C4:1B81E41:22ECE26:6B0152E4 |
| html-safe-nonce | 04721b32cda5341d2e21f307bc7b9039ba33f2133e88c3aa0bd80cdd7e25af1d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Njg4OjFEODZDNDoxQjgxRTQxOjIyRUNFMjY6NkIwMTUyRTQiLCJ2aXNpdG9yX2lkIjoiNTUwMzg1NDE5MzM2Mzk5NzQxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 702fd4c8865a15588259ae79feacebfa4138fe8f712c825cf5f77d7d90ccdd28 |
| hovercard-subject-tag | issue:233297631 |
| 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/17188/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c28378d74828c5297418ff8131cd5683517570fec3111f506776adf1fb468dfb/angular/angular/issues/17188 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c28378d74828c5297418ff8131cd5683517570fec3111f506776adf1fb468dfb/angular/angular/issues/17188 |
| og:image:alt | If we have a component that injects a service: constructor(private todoDataService: TodoDataService) { } Then default the Angular bootstrapping / DI Factory to automatically create an inject this s... |
| 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 | 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