From 11373e56597f73c1c777190153438933d279b814 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sun, 25 Jun 2017 01:33:21 -0400 Subject: [PATCH] cleanup --- src/app/search/search.component.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/app/search/search.component.ts b/src/app/search/search.component.ts index 6dc1431..18e4907 100644 --- a/src/app/search/search.component.ts +++ b/src/app/search/search.component.ts @@ -24,18 +24,6 @@ export class SearchComponent implements OnInit { findCharacter(name){ this.searchTerms.next(name); - - // const result = this.http.get('http://swapi.co/api/people/?search=' + name) - // .map((response)=>{ - // return response.json().results; - // }).subscribe( - // (response)=>{ - // this.results = response; - // } - // ); - - // .toPromise() - // .then(response => console.log(this.results = response.json().results) ); } createAPIObservable(name){