message: docs: edit example to fetch hero before sending message
  PR Close
diff: @@ -26,10 +26,10 @@ export class HeroService {
  // #docregion getHeroes, getHeroes-1
  getHeroes(): Observable<Hero[]> {
  // #enddocregion getHeroes-1
  - // TODO: send the message _after_ fetching the heroes
  + const heroes = of(HEROES);
  this.messageService.add('HeroService: fetched heroes');
  // #docregion getHeroes-1
  - return of(HEROES);
  + return heroes;
  }
  // #enddocregion getHeroes, getHeroes-1
  }
  