I expect all four versions to be available.
Other options are very convenient. For example, I have a hybrid app, and on the server, I need a new instance every time, but in the browser, I need a singleton.
@scoped(type of window === 'undefined' ? Lifecycle.Transient : Lifecycle.Singleton)
Describe the bug
Documentation for
@scope
says that there are four possible options forlifecycle
however, TS gives us only two.Expected behavior
I expect all four versions to be available. Other options are very convenient. For example, I have a hybrid app, and on the server, I need a new instance every time, but in the browser, I need a singleton.
Version:
4.5.0