Error when trying to inject a service into an angular component "EXCEPTION: Can't resolve all parameters for component", why?

The Solution to Error when trying to inject a service into an angular component "EXCEPTION: Can't resolve all parameters for component", why? is


Import it from the file where it is declared directly instead of the barrel.

I don't know what exactly causes the issue but I saw it mentioned several times (probably some kind of circular dependency).

It should also be fixable by changing the order of the exports in the barrel (don't know details, but was mentioned as well)

~ Answered on 2016-06-23 19:34:19


Most Viewed Questions: