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
In my case, the reason was the following:
As a consequence, when trying to create an object A, the default constructor failed. I have no idea why this wasn't a compile error.
I got it fixed by simply adding a constructor in A, which correctly called B's constructor.