Thank you for the feedback! ๐๐ป
It depends in your case. Do you provide services at root level / module level / component level?
In most of the cases you would want to provide the services at root level.
This way you will be able to use the service in the component just by declaring it in the constructor.
I recommend the following articles for a better decision:
Dependency injection and injectors hierarchy chapter of this article angular.io/guide/standalone-components
and angular.io/guide/providers
Based on the last one you can make a great assessment where would you need to inject the provide the services.
I hope it helps you!
Egi Mata
Software Engineer | Game Developer
Great article!! Comforting and well structured, but I am a bit sceptic on going all-in for standalone components/services. Is it really a good choice if I start doing it?
I am working with a lot of modules. And I don't know how will I deal with dependency injection of services.