Dynamically inject different object/token into a class
I need to implement some sort of strategy pattern with tsyringe but can’t figure out how to dynamically inject the strategy into my context class without polluting the dependency container.
I need to implement some sort of strategy pattern with tsyringe but can’t figure out how to dynamically inject the strategy into my context class without polluting the dependency container.