mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: fix minor typo in hierarchical-dependency-injection.md (#47812)
Small Typo change - renamed oh to or in https://angular.io/guide/hierarchical-dependency-injection#skipself-and-viewproviders PR Close #47812
This commit is contained in:
@@ -736,7 +736,7 @@ The example application uses `@Optional()` so the application does not throw an
|
||||
The `<app-child>` currently provides the `AnimalService` in the `viewProviders` array with the value of dog <code>🐶</code>.
|
||||
Because the injector has only to look at the `ElementInjector` of the `<app-child>` for the `AnimalService`, it never sees the whale <code>🐳</code>.
|
||||
|
||||
As in the `FlowerService` example, if you add `@SkipSelf()` to the constructor for the `AnimalService`, the injector won't look in the `ElementInjector` oh the current `<app-child>` for the `AnimalService`.
|
||||
As in the `FlowerService` example, if you add `@SkipSelf()` to the constructor for the `AnimalService`, the injector won't look in the `ElementInjector` or the current `<app-child>` for the `AnimalService`.
|
||||
|
||||
<code-example format="typescript" language="typescript">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user