
committed by
Matias Niemelä

parent
171ae154c2
commit
ca129ba549
@ -11,7 +11,7 @@ export class HeroService {
|
||||
|
||||
getHeroes() {
|
||||
return this.http.get('api/heroes')
|
||||
.map((response: Response) => <Hero[]>response.json().data);
|
||||
.map((response: Response) => <Hero[]>response.json());
|
||||
}
|
||||
}
|
||||
// #enddocregion example
|
||||
|
Reference in New Issue
Block a user