docs(toh-pt6) : update htttp.get() to http.get() (#3498)
This commit is contained in:
parent
86dce5227c
commit
918ae9996f
|
@ -382,7 +382,7 @@ h1 Providing HTTP Services
|
|||
in the `HeroService`, although the URL now has a query string.
|
||||
|
||||
More importantly, you no longer call `toPromise()`.
|
||||
Instead you return the *Observable* from the the `htttp.get()`,
|
||||
Instead you return the *Observable* from the the `http.get()`,
|
||||
after chaining it to another RxJS operator, <code>map()</code>,
|
||||
to extract heroes from the response data.
|
||||
RxJS operator chaining makes response processing easy and readable.
|
||||
|
|
Loading…
Reference in New Issue