Decorator for adding additional tokens to a class when registering.
Rest
@Injectable(Weapon)class Wand {}container.register(Wand);// Under the hood[Wand, Weapon].forEach((token) => { container.register( token, {useClass: Wand}, );}); Copy
@Injectable(Weapon)class Wand {}container.register(Wand);// Under the hood[Wand, Weapon].forEach((token) => { container.register( token, {useClass: Wand}, );});
@NO_SIDE_EFFECTS
Decorator for adding additional tokens to a class when registering.