This commit is contained in:
dk 2017-03-20 19:27:26 +08:00 committed by GitHub
parent a3364d89e3
commit 2da1a2d84f

View File

@ -650,7 +650,7 @@ block observables-section-intro
+ifDocsFor('ts') +ifDocsFor('ts')
:marked :marked
A more important difference: we no longer call `toPromise`. A more important difference: we no longer call `toPromise`.
Instead we return the *observable* from the the `htttp.get`, Instead we 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.