From 06a0cf2e31747c658fa4b27cda016621ab6d5a1f Mon Sep 17 00:00:00 2001 From: David Herges Date: Tue, 13 Jun 2017 11:51:30 +0200 Subject: [PATCH] docs(aio): http guide shows how to import toPromise operator from rxjs Solves #17454 --- aio/content/guide/http.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aio/content/guide/http.md b/aio/content/guide/http.md index c1a32e9687..55d6f25343 100644 --- a/aio/content/guide/http.md +++ b/aio/content/guide/http.md @@ -407,6 +407,9 @@ like the Observable-based version. +First, make sure to import the `toPromise` operator of the RxJS library. + + Here is a comparison of the `HeroService` using Promises versus Observables, highlighting just the parts that are different.