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:
Balaji
2022-10-19 20:36:43 +05:30
committed by Pawel Kozlowski
parent 4d18ba1af7
commit a42c8cfc67
@@ -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>&#x1F436;</code>.
Because the injector has only to look at the `ElementInjector` of the `<app-child>` for the `AnimalService`, it never sees the whale <code>&#x1F433;</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">