Class decorator for setting the scope of the decorated type when registering it.
The scope set by this decorator can be overridden by explicit registration options, if provided.
@Scoped(Scope.Container)class Wizard {}container.register(Wizard);// Under the hoodcontainer.register( Wizard, { useClass: Wizard }, { scope: Scope.Container },); Copy
@Scoped(Scope.Container)class Wizard {}container.register(Wizard);// Under the hoodcontainer.register( Wizard, { useClass: Wizard }, { scope: Scope.Container },);
@NO_SIDE_EFFECTS
Class decorator for setting the scope of the decorated type when registering it.
The scope set by this decorator can be overridden by explicit registration options, if provided.