docs: fix typo in dependency injection guide (#27616)

~~`HeroService` must provided in some parent injector~~
*`HeroService` must be provided in some parent injector*

PR Close #27616
This commit is contained in:
Ashinze Ekene 2018-12-12 04:58:59 +01:00 committed by Andrew Kushnir
parent 0897ebac9e
commit 4bb5f638bc
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ Here's the revised component, making use of the injected service, side-by-side w
</code-pane> </code-pane>
</code-tabs> </code-tabs>
`HeroService` must provided in some parent injector. The code in `HeroListComponent` doesn't depend on where `HeroService` comes from. `HeroService` must be provided in some parent injector. The code in `HeroListComponent` doesn't depend on where `HeroService` comes from.
If you decided to provide `HeroService` in `AppModule`, `HeroListComponent` wouldn't change. If you decided to provide `HeroService` in `AppModule`, `HeroListComponent` wouldn't change.
{@a singleton-services} {@a singleton-services}