From d6440c180866e95516e62f7dfe573abc9df23105 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 10 Feb 2021 21:25:36 +0000 Subject: [PATCH] docs: fix missing code line from tutorial example (#40789) In #40419 we move the code that creates the `heroes` object above the code that updates the message service. But this moved that line of code outside of the docregion that is displayed in the tutorial ealier on, making it non-sensical. This commit ensures that this line of code is now rendered in the tutorial be moving it within the correct docregion. Closes #40788 PR Close #40789 --- aio/content/examples/toh-pt4/src/app/hero.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/examples/toh-pt4/src/app/hero.service.ts b/aio/content/examples/toh-pt4/src/app/hero.service.ts index 8f034dd553..01b9ba1116 100644 --- a/aio/content/examples/toh-pt4/src/app/hero.service.ts +++ b/aio/content/examples/toh-pt4/src/app/hero.service.ts @@ -25,8 +25,8 @@ export class HeroService { // #docregion getHeroes, getHeroes-1 getHeroes(): Observable { - // #enddocregion getHeroes-1 const heroes = of(HEROES); + // #enddocregion getHeroes-1 this.messageService.add('HeroService: fetched heroes'); // #docregion getHeroes-1 return heroes;