Title: fix(http): cannot use JSONP_BINDINGS and HTTP_BINDINGS in same injector · Issue #3365 · angular/angular · GitHub
Open Graph Title: fix(http): cannot use JSONP_BINDINGS and HTTP_BINDINGS in same injector · Issue #3365 · angular/angular
X Title: fix(http): cannot use JSONP_BINDINGS and HTTP_BINDINGS in same injector · Issue #3365 · angular/angular
Description: If I create an injector as follows, Http will use the JsonpBackend instead of XHRBackend. var injector = Injector.resolveAndCreate([HTTP_BINDINGS, JSONP_BINDINGS]); var http = injector.get(Http); http.get('foo.json'); // Would use JSONP ...
Open Graph Description: If I create an injector as follows, Http will use the JsonpBackend instead of XHRBackend. var injector = Injector.resolveAndCreate([HTTP_BINDINGS, JSONP_BINDINGS]); var http = injector.get(Http); h...
X Description: If I create an injector as follows, Http will use the JsonpBackend instead of XHRBackend. var injector = Injector.resolveAndCreate([HTTP_BINDINGS, JSONP_BINDINGS]); var http = injector.get(Http); h...
Opengraph URL: https://github.com/angular/angular/issues/3365
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(http): cannot use JSONP_BINDINGS and HTTP_BINDINGS in same injector","articleBody":"If I create an injector as follows, Http will use the JsonpBackend instead of XHRBackend.\n\n``` js\nvar injector = Injector.resolveAndCreate([HTTP_BINDINGS, JSONP_BINDINGS]);\nvar http = injector.get(Http);\nhttp.get('foo.json'); // Would use JSONP Backend.\n```\n\nThis is because both injectables bind the abstract `ConnectionBackend` class to their own specific implementation.\n\nThis should be able to be easily fixed by binding `Jsonp` and `Http` to factories that have dependencies on concrete backends instead of overriding the `ConnectionBackend` bindings.\n","author":{"url":"https://github.com/jeffbcross","@type":"Person","name":"jeffbcross"},"datePublished":"2015-07-29T19:41:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3365/angular/issues/3365"}
| 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:dc730101-6f1f-493a-5a1e-103bb4e5627f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D984:3B046E:5C5934:7B9F6C:6A5FFAEA |
| html-safe-nonce | b432292bd924083aa4fff1123b08a3d94eb17cf1abcf2c6a627eaf158411f4b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTg0OjNCMDQ2RTo1QzU5MzQ6N0I5RjZDOjZBNUZGQUVBIiwidmlzaXRvcl9pZCI6IjI4Mzc4NjE2NDgyMTgxODA5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 73285304b32cedcf5006ecf732c67c2c8c811f9d482b78c31cf8cef47f8c7992 |
| hovercard-subject-tag | issue:98014387 |
| 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/3365/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b5fd3ba2407573ae6b0e1f986986da9839bc923b048e6e68fea240a5cb91d88/angular/angular/issues/3365 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b5fd3ba2407573ae6b0e1f986986da9839bc923b048e6e68fea240a5cb91d88/angular/angular/issues/3365 |
| og:image:alt | If I create an injector as follows, Http will use the JsonpBackend instead of XHRBackend. var injector = Injector.resolveAndCreate([HTTP_BINDINGS, JSONP_BINDINGS]); var http = injector.get(Http); h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeffbcross |
| hostname | github.com |
| expected-hostname | github.com |
| None | 79522f2cee5c5409f33a714312a1a68d41ad77a807626020d980fb1eb81def07 |
| 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 | 3df4fbea9b6b5ead5c6724a99dc5f5b62caa864b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width