Experimental
Experimental
Experimental
Check status of a dependency in scope or outside of a scope.
Key or alias of dependency
Optional
scopeId: stringThe ID of scope that you want to resolve
Throw error if something wrong and return true if everything was ok
Experimental
Clone the entire container with same dependencies.
A clone of current container
Experimental
Inspect metadata of a registered dependency.
Key or alias of dependency
metadata of dependency
Experimental
Override a registered dependency with a new singleton and non-factory value.
Key or alias of an exist dependency
value of dependency
Experimental
Resolve a dependency, respecting its lifecycle (singleton, scoped, transient).
Key or alias of dependency
Optional
scopeId: stringThe ID of scope that you want to resolve
value or instance of the dependency
Experimental
Shortcut for resolve(), mostly for user-facing code.
Key or alias of dependency
Optional
scopeId: stringThe ID of scope that you want to resolve
value or instance of the dependency
NeuronContainer is a flexible and performant dependency injection system. Supports aliasing, hybrid string/class tokens, async registration, and lifecycles.
Lifecycle Types:
This is an experimental feature.
Version
0.5.1
Since
0.13.0