From ae9505b70299f3f9d928df106eaa04500fc7fbdc Mon Sep 17 00:00:00 2001 From: Ofer Segev Date: Thu, 27 Jun 2024 15:18:58 +0300 Subject: [PATCH] docs: update dependency-injection-context.md (#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 #56736 --- adev/src/content/guide/di/dependency-injection-context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adev/src/content/guide/di/dependency-injection-context.md b/adev/src/content/guide/di/dependency-injection-context.md index 415556f48bc..b242b87d2c8 100644 --- a/adev/src/content/guide/di/dependency-injection-context.md +++ b/adev/src/content/guide/di/dependency-injection-context.md @@ -23,7 +23,7 @@ class MyComponent { private service2: Service2 = inject(Service2); // In context constructor() { - this.service1 = inject(HeroService) // In context + this.service1 = inject(Service1) // In context } }