From e8ea3be84351dff6dcfae991711cecf1f0dd37cd Mon Sep 17 00:00:00 2001 From: ajitsinghkaler Date: Wed, 12 Feb 2020 09:09:02 +0530 Subject: [PATCH] docs: remove service from region where it was added before it was created (#35354) The message service was added in a section create message service but was impoted much before it removed those imports because they can be confusing Fixes #35259 PR Close #35354 --- .../examples/toh-pt4/src/app/heroes/heroes.component.1.ts | 4 ++-- .../examples/toh-pt4/src/app/heroes/heroes.component.ts | 2 +- aio/content/tutorial/toh-pt4.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.1.ts b/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.1.ts index 909955f097..cf775d0952 100644 --- a/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.1.ts +++ b/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.1.ts @@ -5,9 +5,9 @@ import { Observable } from 'rxjs'; class DummyHeroesComponent { heroes: Observable; - + // #docregion ctor constructor(private heroService: HeroService) {} - + // #enddocregion ctor // #docregion getHeroes getHeroes(): void { // #docregion get-heroes diff --git a/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.ts b/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.ts index 4a3667871e..a631a85103 100644 --- a/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.ts +++ b/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.ts @@ -5,8 +5,8 @@ import { Component, OnInit } from '@angular/core'; import { Hero } from '../hero'; // #docregion hero-service-import import { HeroService } from '../hero.service'; -import { MessageService } from '../message.service'; // #enddocregion hero-service-import +import { MessageService } from '../message.service'; @Component({ selector: 'app-heroes', diff --git a/aio/content/tutorial/toh-pt4.md b/aio/content/tutorial/toh-pt4.md index 6ad2c5ed45..fe03b14a6e 100644 --- a/aio/content/tutorial/toh-pt4.md +++ b/aio/content/tutorial/toh-pt4.md @@ -122,7 +122,7 @@ Replace the definition of the `heroes` property with a simple declaration. Add a private `heroService` parameter of type `HeroService` to the constructor. - + The parameter simultaneously defines a private `heroService` property and identifies it as a `HeroService` injection site.