angular-docs-cn/packages
Alex Rickabaugh 120bdeecdc fix(common): allow HttpInterceptors to inject HttpClient (#19809)
Previously, an interceptor attempting to inject HttpClient directly
would receive a circular dependency error, as HttpClient was
constructed via a factory which injected the interceptor instances.
Users want to inject HttpClient into interceptors to make supporting
requests (ex: to retrieve an authentication token). Currently this is
only possible by injecting the Injector and using it to resolve
HttpClient at request time.

Either HttpClient or the user has to deal specially with the circular
dependency. This change moves that responsibility into HttpClient
itself. By utilizing a new class HttpInterceptingHandler which lazily
loads the set of interceptors at request time, it's possible to inject
HttpClient directly into interceptors as construction of HttpClient no
longer requires the interceptor chain to be constructed.

Fixes #18224.

PR Close #19809
2018-01-29 16:12:32 -08:00
..
animations build: move repeated tsconfig attributes to a macro (#20964) 2018-01-10 12:30:19 -08:00
bazel build: update to latest bazel rules (#21821) 2018-01-27 10:55:44 -08:00
benchpress fix(benchpress): should still support selenium_webdriver < 3.6.0 (#21477) 2018-01-11 10:53:44 -08:00
common fix(common): allow HttpInterceptors to inject HttpClient (#19809) 2018-01-29 16:12:32 -08:00
compiler feat(ivy): support ng-content projection in the ivy compiler (#21764) 2018-01-29 11:35:32 -08:00
compiler-cli fix(ivy): fix issues found producing "Hello, World" example (#21790) 2018-01-27 10:50:13 -08:00
core refactor(ivy): save check methods separately (#21795) 2018-01-29 16:12:02 -08:00
docs refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
examples build: add bazel test rules for remainder of packages (#21053) 2017-12-22 13:10:51 -08:00
forms fix(forms): inserting and removing controls should work in re-bound form arrays (#21822) 2018-01-29 16:11:41 -08:00
http build: Remove angular_src nested workspace (#21096) 2018-01-19 10:17:37 -08:00
language-service fix(language-service): ensure correct paths are passed to TypeScript (#21812) 2018-01-26 14:49:23 -08:00
platform-browser build: Remove angular_src nested workspace (#21096) 2018-01-19 10:17:37 -08:00
platform-browser-dynamic build: Remove angular_src nested workspace (#21096) 2018-01-19 10:17:37 -08:00
platform-server feat(router): add navigationSource and restoredState to NavigationStart event (#21728) 2018-01-29 10:22:59 -08:00
platform-webworker build: Remove angular_src nested workspace (#21096) 2018-01-19 10:17:37 -08:00
platform-webworker-dynamic build: move repeated tsconfig attributes to a macro (#20964) 2018-01-10 12:30:19 -08:00
router feat(router): add navigationSource and restoredState to NavigationStart event (#21728) 2018-01-29 10:22:59 -08:00
service-worker build: update to latest bazel rules (#21821) 2018-01-27 10:55:44 -08:00
upgrade build: move repeated tsconfig attributes to a macro (#20964) 2018-01-10 12:30:19 -08:00
BUILD.bazel build: move repeated tsconfig attributes to a macro (#20964) 2018-01-10 12:30:19 -08:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
empty.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
es6-subset.d.ts build: switch from npm to yarn (#19328) 2017-09-22 13:20:52 -07:00
goog.d.ts fix(compiler): add typings for `COMPILED`. 2017-09-29 09:26:38 -07:00
license-banner.txt docs(common): update copyright years (#21232) 2018-01-04 17:45:36 -05:00
rollup.config.js refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
system.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tsconfig-build.json refactor: update angular to support TypeScript 2.4 2017-09-12 10:31:30 -07:00
tsconfig-metadata.json refactor(compiler): bump metadata version to 4 (#19338) 2017-09-26 13:31:59 -07:00
tsconfig.json build: remove references to `tsc-wrapped` (#19298) 2017-09-21 13:55:52 -07:00
types.d.ts build: add bazel test rules for remainder of packages (#21053) 2017-12-22 13:10:51 -08:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT