#How do you share generic "helpers/utils" in your code? Use a global provider?
4 messages · Page 1 of 1 (latest)
Hmmm, probably I would just import it.
I never saw one situation where should be better to make it work through Dependency Injection
But, if you see one situation where it’s better to work with dependency injection, you could build one DynamicModule.
This dynamicModule could inject all your Util functions, or, if you wouldn’t like to inject everything, you can build one DynamicModule.forFeature to specify what you want to inject
Hmm, we have a few blockers when an Util need to access Nest features like config to use envs @cyan pewter