I\'ve built a basic app in Angular, but I have encountered a strange issue where I cannot inject a service into one of my components. It injects fine into any of the three o
I also encountered this by injecting service A into service B and vice versa.
I think it's a good thing that this fails fast as it should probably be avoided anyway. If you want your services to be more modular and re-usable, it's best to avoid circular references as much as possible. This post highlights the pitfalls surrounding that.
Therefore, I have the following recommendations:
EventService
) which both services can inject in order to exchange messages.