mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(core): Fix minor typo in comment of injector_compatibility.ts (#51324)
PR Close #51324
This commit is contained in:
committed by
Pawel Kozlowski
parent
f30a49e3de
commit
951ef93aa6
@@ -155,7 +155,7 @@ export function inject<T>(token: ProviderToken<T>, options: InjectOptions&{optio
|
||||
export function inject<T>(token: ProviderToken<T>, options: InjectOptions): T|null;
|
||||
/**
|
||||
* Injects a token from the currently active injector.
|
||||
* `inject` is only supported in a [injection context](/guide/dependency-injection-context). It can
|
||||
* `inject` is only supported in an [injection context](/guide/dependency-injection-context). It can
|
||||
* be used during:
|
||||
* - Construction (via the `constructor`) of a class being instantiated by the DI system, such
|
||||
* as an `@Injectable` or `@Component`.
|
||||
|
||||
Reference in New Issue
Block a user