Creates a new injector bound to the shared root scope.
Resolves a registered function and returns the injected function wrapper.
The original function parameter types.
The function return type.
The registered function qualifier.
Optionaloptions: ResolveOptionsOptional resolve options.
InjectionError when the dependency was not found.
Resolves a class or injection token.
The provided dependency type.
The dependency qualifier.
Optionaloptions: ResolveOptionsOptional resolve options.
InjectionError when the dependency was not found.
Resolves a registered function asynchronously and returns the injected function wrapper.
The original function parameter types.
The function return type.
The registered function qualifier.
Optionaloptions: ResolveOptionsOptional resolve options.
InjectionError when the dependency was not found.
Resolves a class or injection token asynchronously.
The provided dependency type.
The dependency qualifier.
Optionaloptions: ResolveOptionsOptional resolve options.
InjectionError when the dependency was not found.
Resolves a registered function synchronously and returns the injected function wrapper.
The original function parameter types.
The function return type.
The registered function qualifier.
Optionaloptions: ResolveOptionsOptional resolve options.
InjectionError when the dependency was not found or is asynchronous.
Resolves a class or injection token synchronously.
The provided dependency type.
The dependency qualifier.
Optionaloptions: ResolveOptionsOptional resolve options.
InjectionError when the dependency was not found or is asynchronous.
Checks if the given scope or one of its parent scopes can resolve the given registered function.
The original function parameter types.
The function return type.
The registered function qualifier to look for.
Optionaloptions: ResolveOptionsOptional resolve options.
True if the function can be resolved, false if not.
Checks if the given scope or one of its parent scopes can resolve the given class or injection token.
The provided dependency type.
The dependency qualifier to look for.
Optionaloptions: ResolveOptionsOptional resolve options.
True if the qualifier can be resolved, false if not.
Removes the given registered function from the target scope's registry only and does not bubble up the parent chain.
The original function parameter types.
The function return type.
The registered function qualifier to remove.
Optionaloptions: ResolveOptionsOptional resolve options.
True if something was removed, false if not.
Removes the given class or injection token from the target scope's registry only and does not bubble up the parent chain.
The provided dependency type.
The qualifier to remove.
Optionaloptions: ResolveOptionsOptional resolve options.
True if something was removed, false if not.
Registers a class with no constructor parameters.
The created dependency type.
The class to register.
Optionaloptions: InjectableOptions<[], Value>Optional registration options.
Registers a class with fully injected constructor parameters.
The created dependency type.
The constructor parameter types.
The class to register.
Registration options including the injected constructor parameters.
Registers a transient class whose constructor may use null pass-through placeholders.
The created dependency type.
The constructor parameter types.
The class to register.
Registration options including the injected constructor parameters and transient lifetime.
Registers a factory with no parameters.
The created dependency type.
Registers a factory with fully injected parameters.
The created dependency type.
The factory parameter types.
The type produced by the factory.
The factory function to register.
Registration options including the injected factory parameters.
Registers a transient factory whose parameters may use null pass-through placeholders.
The created dependency type.
The factory parameter types.
The type produced by the factory.
The factory function to register.
Registration options including the injected factory parameters and transient lifetime.
Registers the given injectable function in the target scope. Using null in the inject array defines placeholders for pass-through
function parameters. So when injecting a function with inject arguments [ null, Service, null ] the resolved function expects two
parameters which are filled into the placeholders while Service is injected automatically.
The original function parameter types.
The inject array containing qualifiers and null placeholders.
The function return type.
The function to inject.
The parameter inject array. It must match the function signature and may use null to keep parameters in the resolved call signature.
Optional options for the function registration.
Registers the given injectable value in the target scope.
Value registrations are token-based only. For type-based registrations use setClass or setFactory.
The provided dependency type.
The value to inject.
Injection token or non-empty token list of the value registration.
Optional options for the value registration.
Dependency injector operating on explicit scopes, or on the shared root scope when no scope is specified.