Scopes · Core API
const Scopes: object;Built-in provider lifetimes.
Type Declaration
Section titled “Type Declaration”Singleton
Section titled “Singleton”readonly Singleton: "singleton" = "singleton";One instance cached by the container that owns the provider.
Transient
Section titled “Transient”readonly Transient: "transient" = "transient";A new instance for every resolution.
Scoped
Section titled “Scoped”readonly Scoped: "scoped" = "scoped";One instance cached by each resolving container.