angular/aio/content/examples/http/src
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
..
app docs(common): switch HTTP guide examples to TestBed.inject() (#35777) 2020-03-03 08:57:18 -08:00
assets docs: add http guide sample and adjust text (#21326) 2018-01-31 10:24:43 -08:00
testing docs(common): switch HTTP guide examples to TestBed.inject() (#35777) 2020-03-03 08:57:18 -08:00
browser-test-shim.js docs: migrate examples from @angular/http to @angular/common/http (#28296) 2019-03-11 10:52:17 -07:00
index-specs.html Revert "docs: add testing styles in index.html, remove additional configuration" (#25892) 2018-10-09 17:04:19 -07:00
index.html docs: add http guide sample and adjust text (#21326) 2018-01-31 10:24:43 -08:00
main-specs.ts build: upgrade zone.js (#23108) 2018-04-04 08:24:02 -07:00
main.ts fix(docs-infra): fix StackBlitz and zipped http examples (#33941) 2019-11-20 14:44:31 -08:00
test.css Revert "docs: add testing styles in index.html, remove additional configuration" (#25892) 2018-10-09 17:04:19 -07:00