From 942a62a853fb65c3985e1cfad8c396ee081f9191 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Mon, 26 Jun 2017 21:52:50 -0400 Subject: [PATCH] Switch from a Promise to an Observable --- day3/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/day3/README.md b/day3/README.md index 17e1ae1..b230c83 100644 --- a/day3/README.md +++ b/day3/README.md @@ -31,6 +31,8 @@ Test it out. In the network tab of your Chrome Developer Tools, see how a reque ## Switch from a Promise to an Observable +Nomally, `this.http.get()` returns an observable. We convert it to a traditional promise with `toPromise()`. Let's remove `toPromise()` and use the default functionality of `this.http.get()`. + In `src/app/search/search.component.ts` edit the `findCharacter` method of `SearchComponent`. ```javascript