docs(docs-infra): add a missing @ to SkipSelf() (#50898)

PR Close #50898
This commit is contained in:
Hassen Gaaya 2023-06-30 01:19:16 +02:00 committed by Alex Rickabaugh
parent 0028b6d4d4
commit 125fe19086

View file

@ -852,7 +852,7 @@ export class ChildComponent {
</code-example>
When `@Host()` and `SkipSelf()` were applied to the `FlowerService`, which is in the `providers` array, the result was `null` because `@SkipSelf()` starts its search in the `<app-child>` injector, but `@Host()` stops searching at `<#VIEW>` &mdash;where there is no `FlowerService`
When `@Host()` and `@SkipSelf()` were applied to the `FlowerService`, which is in the `providers` array, the result was `null` because `@SkipSelf()` starts its search in the `<app-child>` injector, but `@Host()` stops searching at `<#VIEW>` &mdash;where there is no `FlowerService`
In the logical tree, you can see that the `FlowerService` is visible in `<app-child>`, not its `<#VIEW>`.
However, the `AnimalService`, which is provided in the `AppComponent` `viewProviders` array, is visible.