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("Container")class Wizard {}container.register(Wizard);// Under the hoodcontainer.register( Wizard, { useClass: Wizard }, { scope: "Container" },); Copy
@Scoped("Container")class Wizard {}container.register(Wizard);// Under the hoodcontainer.register( Wizard, { useClass: Wizard }, { 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.