Skip to content

Commit 87a724e

Browse files
HarieswaranDpkozlowski-opensource
authored andcommitted
docs: suggesting a typo error in the document (angular#57627)
PR Close angular#57627
1 parent 163f4d0 commit 87a724e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adev/src/content/guide/di/hierarchical-dependency-injection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Use `@Self()` so that Angular will only look at the `ElementInjector` for the cu
215215
A good use case for `@Self()` is to inject a service but only if it is available on the current host element.
216216
To avoid errors in this situation, combine `@Self()` with `@Optional()`.
217217

218-
For example, in the following `SelfComponent`, notice the injected `LeafService` in the constructor.
218+
For example, in the following `SelfNoDataComponent`, notice the injected `LeafService` in the constructor.
219219

220220
<docs-code header="src/app/self-no-data/self-no-data.component.ts" language="typescript"
221221
highlight="[7]">

0 commit comments

Comments
 (0)