Interface: InjectableOptions
Configuration options for the Injectable decorator. Allows customization of the provider’s lifetime scope.
Properties
scope?
optional
scope:Scope
The lifetime scope of the injectable provider.
Scope.SINGLETON
(default): a single shared instance.Scope.TRANSIENT
: a new instance per injection.