docs(toh-pt6) : update htttp.get() to http.get() (#3498)

This commit is contained in:
Andy Costanza 2017-04-03 23:46:32 +02:00 committed by Jesús Rodríguez
parent 86dce5227c
commit 918ae9996f

View File

@ -382,7 +382,7 @@ h1 Providing HTTP Services
in the `HeroService`, although the URL now has a query string. in the `HeroService`, although the URL now has a query string.
More importantly, you no longer call `toPromise()`. 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>, after chaining it to another RxJS operator, <code>map()</code>,
to extract heroes from the response data. to extract heroes from the response data.
RxJS operator chaining makes response processing easy and readable. RxJS operator chaining makes response processing easy and readable.