You can specify the lifetime of the service in the annotation.
@Service( lifetime: ServiceLifetime.singleton, // default ) class SingletonService {} @Service( lifetime: ServiceLifetime.transient, ) class TransientService {}
resolve
tryResolve
There was an error while loading. Please reload this page.