The containing instance, used to help resolve circular dependencies.
The class to resolve.
Optionalname: stringThe name qualifier of the class to resolve.
Injects the value associated with the given token.
Throws an error if the token is not registered in the container.
Compared to inject, injectBy accepts a thisArg argument
(e.g., the containing class instance) which is used to resolve circular dependencies.
Injects the instance associated with the given class.
Throws an error if the class is not registered in the container.
Compared to inject,
injectByaccepts athisArgargument (e.g., the containing class instance) which is used to resolve circular dependencies.