Skip to content

Commit

Permalink
docs: fix typo in dependency injection guide (angular#27616)
Browse files Browse the repository at this point in the history
~~`HeroService` must provided in some parent injector~~
*`HeroService` must be provided in some parent injector*

PR Close angular#27616
  • Loading branch information
ashinzekene authored and wKoza committed Jan 18, 2019
1 parent e622b4c commit d49be8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio/content/guide/dependency-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Here's the revised component, making use of the injected service, side-by-side w
</code-pane>
</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.

{@a singleton-services}
Expand Down

0 comments on commit d49be8e

Please sign in to comment.