angular-cn/aio/content/examples/http
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
..
e2e/src docs: remove gender prefixes from examples (#29972) 2019-05-20 16:42:59 -07:00
src docs(common): switch HTTP guide examples to `TestBed.inject()` (#35777) 2020-03-03 08:57:18 -08:00
example-config.json Revert "docs: add testing styles in index.html, remove additional configuration" (#25892) 2018-10-09 17:04:19 -07:00
specs.stackblitz.json fix(docs-infra): fix StackBlitz and zipped `http` examples (#33941) 2019-11-20 14:44:31 -08:00
stackblitz.json build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00