Skip to content

Commit 910768f

Browse files
lyutailsthePunderWoman
authored andcommitted
docs: update hierarchical-dependency-injection.md
VillainsService highly likely misspelled and then written as VillainService with 's' missing
1 parent 6e82167 commit 910768f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,8 +959,8 @@ export class VillainsList {}
959959

960960
By providing `VillainsService` in the `VillainsList` metadata and nowhere else, the service becomes available only in the `VillainsList` and its subcomponent tree.
961961

962-
`VillainService` is a singleton with respect to `VillainsList` because that is where it is declared.
963-
As long as `VillainsList` does not get destroyed it will be the same instance of `VillainService` but if there are multiple instances of `VillainsList`, then each instance of `VillainsList` will have its own instance of `VillainService`.
962+
`VillainsService` is a singleton with respect to `VillainsList` because that is where it is declared.
963+
As long as `VillainsList` does not get destroyed it will be the same instance of `VillainsService` but if there are multiple instances of `VillainsList`, then each instance of `VillainsList` will have its own instance of `VillainsService`.
964964

965965
### Scenario: multiple edit sessions
966966

0 commit comments

Comments
 (0)