getHeroes() uses the RxJS of() function to return an array of mock heroes as an Observable<Hero[]> . src/app/hero.service.ts (getHeroes with RxJs 'of()')
確定! 回上一頁