mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
`TestBed.get()` has been [deprecated in v9][1], in favor of `TestBed.inject()`. In ##32382, the HTTP guide wording has been updated to mention `TestBed.inject()` instead of `TestBed.get()`, but the associated code snippets (extracted from the `http` example) were not. This commit updates the HTTP guide examples to also use `TestBed.inject()`. [1]: https://v9.angular.io/guide/deprecations#testing Fixes #35609 PR Close #35777 |
||
|---|---|---|
| .. | ||
| config | ||
| downloader | ||
| heroes | ||
| http-interceptors | ||
| messages | ||
| package-search | ||
| uploader | ||
| app.component.html | ||
| app.component.ts | ||
| app.module.ts | ||
| auth.service.ts | ||
| http-error-handler.service.ts | ||
| in-memory-data.service.ts | ||
| message.service.ts | ||
| request-cache.service.ts | ||