parent
2e6c57e770
commit
3692d05c34
|
@ -18,7 +18,7 @@ export class HeroService {
|
|||
}
|
||||
|
||||
//#docregion get-hero
|
||||
getHero(id: number) {
|
||||
getHero(id: number) {
|
||||
return Promise.resolve(HEROES).then(
|
||||
heroes => heroes.filter(hero => hero.id === id)[0]
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue