From 0bb4361dac08826abdf97ef412bc0bf499d362fe Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Thu, 10 Aug 2023 09:44:42 -0700 Subject: [PATCH] docs(docs-infra): Fix minor typos in dependency-injection-context.md (#51324) PR Close #51324 --- aio/content/guide/dependency-injection-context.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aio/content/guide/dependency-injection-context.md b/aio/content/guide/dependency-injection-context.md index 1c4227a53b2..2dfbb87110b 100644 --- a/aio/content/guide/dependency-injection-context.md +++ b/aio/content/guide/dependency-injection-context.md @@ -1,6 +1,6 @@ # Injection context -The dependency injection (DI) system relies internaly on a runtime context where the current injector is available. +The dependency injection (DI) system relies internally on a runtime context where the current injector is available. This means that injectors can only work when code is executed in this context. The injection context is available in these situations: @@ -9,7 +9,7 @@ The injection context is available in these situations: * In the initializer for fields of such classes. * In the factory function specified for `useFactory` of a `Provider` or an `@Injectable`. * In the `factory` function specified for an `InjectionToken`. -* Within a stack frame that is run in a injection context. +* Within a stack frame that is run in an injection context. Knowing when your are in an injection context, will allow you to use the [`inject`](api/core/inject) function to inject instances. @@ -60,4 +60,4 @@ Calling [`inject`](api/core/inject) or calling `assertInInjectionContext` outsid -@reviewed 2023-04-11 \ No newline at end of file +@reviewed 2023-04-11