Private
instancesPrivate
providersPrivate
createInternal factory method to create the instance of a resolved dependency.
Registers a dependency provider.
Returns true if the registration is successful, or false if a provider with the same injection token is already registered.
Resolves a provided dependency, by either returning an already resolved instance or creating a new one. Nested dependencies are resolved as well.
Private
resolveInternal method, called by resolve() to resolve a dependency.The resolution path is passed as argument, to detect and fail on circular dependencies.
Removes the dependency provided associated with the given injection token. If the dependency was already resolved, removes the resolved instance too.
Generated using TypeDoc
The Injector resolves injectable dependencies to concrete instances.