projects
/
examples
/
angular-tour-of-heroes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
HeroDetailComponent issues a message after successfull retrival of a hero
[examples/angular-tour-of-heroes]
/
src
/
app
/
hero.service.ts
diff --git
a/src/app/hero.service.ts
b/src/app/hero.service.ts
index
1db6072
..
649b856
100644
(file)
--- a/
src/app/hero.service.ts
+++ b/
src/app/hero.service.ts
@@
-18,7
+18,7
@@
export class HeroService {
}
getHero(id: number): Observable<Hero> {
}
getHero(id: number): Observable<Hero> {
- this.messageService.add(`HeroService:
fetch
ed hero id=${id}`);
+ this.messageService.add(`HeroService:
request
ed hero id=${id}`);
const found: Hero | undefined = HEROES.find(hero => hero.id === id);
if (found === undefined) {
return EMPTY;
const found: Hero | undefined = HEROES.find(hero => hero.id === id);
if (found === undefined) {
return EMPTY;