Title: Support `toAlias` binding in both `ElementInjector` and `Injector` · Issue #710 · angular/angular · GitHub
Open Graph Title: Support `toAlias` binding in both `ElementInjector` and `Injector` · Issue #710 · angular/angular
X Title: Support `toAlias` binding in both `ElementInjector` and `Injector` · Issue #710 · angular/angular
Description: Add toAlias to BindingBuilder toAlias will return the same instance as the toAlias Key. TypeA; bind(TypeB).toAlias(TypeA); // implies injector.get(TypeA) === injector.get(TypeB)
Open Graph Description: Add toAlias to BindingBuilder toAlias will return the same instance as the toAlias Key. TypeA; bind(TypeB).toAlias(TypeA); // implies injector.get(TypeA) === injector.get(TypeB)
X Description: Add toAlias to BindingBuilder toAlias will return the same instance as the toAlias Key. TypeA; bind(TypeB).toAlias(TypeA); // implies injector.get(TypeA) === injector.get(TypeB)
Opengraph URL: https://github.com/angular/angular/issues/710
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support `toAlias` binding in both `ElementInjector` and `Injector`","articleBody":"Add `toAlias` to [`BindingBuilder`](https://github.com/angular/angular/blob/821f008462abdb24a18d4852bfe3fe04d8695823/modules/angular2/src/di/binding.js#L39)\n\n`toAlias` will return the same instance as the `toAlias` `Key`.\n\n```\nTypeA;\nbind(TypeB).toAlias(TypeA);\n\n// implies\n\ninjector.get(TypeA) === injector.get(TypeB)\n```\n","author":{"url":"https://github.com/mhevery","@type":"Person","name":"mhevery"},"datePublished":"2015-02-19T04:52:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/710/angular/issues/710"}
| 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:b0038592-e36e-28cf-3b5e-80756edc0ac0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C80E:61F76:118F17F:1959F3F:6A5F4FBB |
| html-safe-nonce | 7793c5cd42706903580aecb9213d007cf77d3fbfb2858b93e86109f35c459b76 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODBFOjYxRjc2OjExOEYxN0Y6MTk1OUYzRjo2QTVGNEZCQiIsInZpc2l0b3JfaWQiOiIxNzQ3MTQ1NjgwNzkwNDQxOTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2c4e085c51b49ce18a585f027adf5efaa021d4e56d4276c79fa9962171907dec |
| hovercard-subject-tag | issue:58167723 |
| 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/710/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd7f72981ab036ecce79f0e69c97cceb2fdf4f80968dc3677a5c06ee8685c32f/angular/angular/issues/710 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd7f72981ab036ecce79f0e69c97cceb2fdf4f80968dc3677a5c06ee8685c32f/angular/angular/issues/710 |
| og:image:alt | Add toAlias to BindingBuilder toAlias will return the same instance as the toAlias Key. TypeA; bind(TypeB).toAlias(TypeA); // implies injector.get(TypeA) === injector.get(TypeB) |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhevery |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a0797c11799dbfd7df57fa3de31c7ea3a4c4bd055eb1a0427a5cde1d4d7ba3f |
| 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 | b099d96da147aea31036cd16b2fba0083a6defe4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width