Skip to content

Commit fe52d8f

Browse files
segevoferpkozlowski-opensource
authored andcommitted
docs: update dependency-injection-context.md (angular#56736)
HeroService is not part of this example, and is only introduced in the next example. Use type Service1 for this.service1, as its type PR Close angular#56736
1 parent 31b235b commit fe52d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MyComponent {
2323
private service2: Service2 = inject(Service2); // In context
2424

2525
constructor() {
26-
this.service1 = inject(HeroService) // In context
26+
this.service1 = inject(Service1) // In context
2727
}
2828
}
2929
</docs-code>

0 commit comments

Comments
 (0)