angular/aio/content/examples/http/src/app
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
..
config feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
downloader docs: add http guide sample and adjust text (#21326) 2018-01-31 10:24:43 -08:00
heroes docs(common): switch HTTP guide examples to TestBed.inject() (#35777) 2020-03-03 08:57:18 -08:00
http-interceptors refactor: ensure all 'TODO's are consistent (#23252) 2018-04-13 13:11:01 -07:00
messages docs: add http guide sample and adjust text (#21326) 2018-01-31 10:24:43 -08:00
package-search docs: fix testing example (#31120) 2019-06-25 10:28:50 -07:00
uploader feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
app.component.html docs: fix http example to use correct property (#32288) 2019-08-23 09:02:05 -07:00
app.component.ts docs: add http guide sample and adjust text (#21326) 2018-01-31 10:24:43 -08:00
app.module.ts docs: add http guide sample and adjust text (#21326) 2018-01-31 10:24:43 -08:00
auth.service.ts docs: add http guide sample and adjust text (#21326) 2018-01-31 10:24:43 -08:00
http-error-handler.service.ts feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
in-memory-data.service.ts docs: remove gender prefixes from examples (#29972) 2019-05-20 16:42:59 -07:00
message.service.ts docs: add http guide sample and adjust text (#21326) 2018-01-31 10:24:43 -08:00
request-cache.service.ts docs: add http guide sample and adjust text (#21326) 2018-01-31 10:24:43 -08:00