From 54a0ea785fdbbe9afc74684e49f985bb2a408381 Mon Sep 17 00:00:00 2001 From: Harieswaran D <81755830+HarieswaranD@users.noreply.github.com> Date: Mon, 2 Sep 2024 20:47:31 +0530 Subject: [PATCH] docs: suggesting a typo error in the document (#57627) PR Close #57627 --- adev/src/content/guide/di/hierarchical-dependency-injection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adev/src/content/guide/di/hierarchical-dependency-injection.md b/adev/src/content/guide/di/hierarchical-dependency-injection.md index ac464ebe1f5..51a53c87f77 100644 --- a/adev/src/content/guide/di/hierarchical-dependency-injection.md +++ b/adev/src/content/guide/di/hierarchical-dependency-injection.md @@ -215,7 +215,7 @@ Use `@Self()` so that Angular will only look at the `ElementInjector` for the cu A good use case for `@Self()` is to inject a service but only if it is available on the current host element. To avoid errors in this situation, combine `@Self()` with `@Optional()`. -For example, in the following `SelfComponent`, notice the injected `LeafService` in the constructor. +For example, in the following `SelfNoDataComponent`, notice the injected `LeafService` in the constructor.