angular 예제 썸네일형 리스트형 [angular] angular-in-memory-web-api 모듈 설치 npm install angular-in-memory-web-api --save hero tutorial HTTP 예제getHeroes(): Promise { return this.http.get(this.heroesUrl) .toPromise() .then(response => response.json().data as Hero[]) .catch(this.handleError);}response.json() 로 해서 heroes 가 출력됨. 더보기 이전 1 다음