`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 |
||
---|---|---|
.. | ||
cli | ||
cli-src | ||
examples | ||
guide | ||
images | ||
marketing | ||
start | ||
tutorial | ||
file-not-found.md | ||
license.md | ||
navigation.json |