GeezerVison is showing github.com — docs: fix typo in dependency injection guide (#50323) · angular/angular@5849287
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: aio/content/guide/dependency-injection.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,7 +34,7 @@ class HeroListComponent {} |
34 | 34 |
|
35 | 35 | When you register a provider at the component level, you get a new instance of the service with each new instance of that component. |
36 | 36 |
|
37 | | -* At the NgModule level, using the `providers` field of the `@NgModule` decorator. In this scenario, the `HeroService` is available to all components, directives, and pipes declared in this NgModule or other NgModule which is within same ModuleInjector applicable for this NgModule. When you register a provider with a specific NgModule, the same instance of a service is available to all applicable components, directives and pipes. |
| 37 | +* At the NgModule level, using the `providers` field of the `@NgModule` decorator. In this scenario, the `HeroService` is available to all components, directives, and pipes declared in this NgModule or other NgModule which is within the same ModuleInjector applicable for this NgModule. When you register a provider with a specific NgModule, the same instance of a service is available to all applicable components, directives and pipes. |
38 | 38 | To understand all edge-cases, see [Hierarchical injectors](guide/hierarchical-dependency-injection). For example: |
39 | 39 |
|
40 | 40 |
|
@@ -81,4 +81,4 @@ When all requested services have been resolved and returned, Angular can call th |
81 | 81 | * [Creating and injecting services](guide/creating-injectable-service) |
82 | 82 | * [Dependency Injection in Action](guide/dependency-injection-in-action) |
83 | 83 |
|
84 | | -@reviewed 2022-08-02 |
| 84 | +@reviewed 2023-05-16 |