Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into master
  • Loading branch information
wardbell authored Apr 12, 2017
commit 90ebf75a5bdc13010d4202d1af9ce30745c27c3f
3 changes: 2 additions & 1 deletion public/docs/ts/latest/tutorial/toh-pt6.jade
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ h1 Providing HTTP Services
But requests aren't always done only once.
You may start one request,
cancel it, and make a different request before the server has responded to the first request.

A *request-cancel-new-request* sequence is difficult to implement with `Promise`s, but
easy with `Observable`s.

Expand All @@ -381,7 +382,7 @@ h1 Providing HTTP Services
The `http.get()` call in `HeroSearchService` is similar to the one
in the `HeroService`, although the URL now has a query string.

<span if-docs="ts">More importantly, you no longer call `toPromise()`.
More importantly, you no longer call `toPromise()`.
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.
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.