angular-cn/aio/content
George Kalpakas bf42807aa6 docs(common): switch HTTP guide examples to `TestBed.inject()` (#35777)
`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
2020-03-03 08:57:18 -08:00
..
cli refactor(docs-infra): remove obsolete `format` attribute from code examples (#31674) 2019-07-24 14:38:54 -07:00
cli-src build(docs-infra): make the git ref for cli command docs configurable (#26391) 2018-10-11 12:57:49 -07:00
examples docs(common): switch HTTP guide examples to `TestBed.inject()` (#35777) 2020-03-03 08:57:18 -08:00
guide docs: fix docs and associated code snippets for enabling more macro tasks in `fakeAsync()` (#35778) 2020-03-02 13:30:25 -08:00
images docs: remove old contributors (#34486) 2020-01-14 10:28:24 -08:00
marketing docs: restructure nav for beginner concepts (#34681) 2020-02-04 08:57:31 -08:00
start docs: update getting started topics to avoid duplicate topic names (#35457) 2020-02-25 13:10:30 -08:00
tutorial docs: remove service from region where it was added before it was created (#35354) 2020-02-12 16:46:22 -08:00
file-not-found.md fix(docs-infra): do not create an anchor for the `file-not-found` header (#27250) 2018-12-05 13:26:26 -08:00
license.md build: bump year (#34651) 2020-01-13 07:21:43 -08:00
navigation.json docs: add documentation of NgZone with zone.js (#34295) 2020-02-26 12:42:59 -08:00