From: Kai Moritz Date: Sat, 2 May 2020 19:41:22 +0000 (+0200) Subject: 4: Add Services X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=3daace5a71b0be19e05b74de9cf7530ce6aa92c3;p=examples%2Fangular-tour-of-heroes 4: Add Services f) Show messages - Send a message from HeroService --- diff --git a/src/app/hero.service.ts b/src/app/hero.service.ts index d0801f3..8df8f33 100644 --- a/src/app/hero.service.ts +++ b/src/app/hero.service.ts @@ -13,6 +13,7 @@ export class HeroService { constructor(private messageService : MessageService) { } getHeroes() : Observable { + this.messageService.add('HeroService: fetching heroes...'); return of(HEROES); } }