Having trouble with two modules, module A
and module B
, that are interdependent.
Module A
is currently in the process of being bootstrapped
. I need to inject a provider
from module A
into the config block of module B
. Unfortunately, I keep getting an error saying "Unknown provider":
Failed to instantiate module A due to:
Error: [$injector:modulerr] Failed to instantiate module B due to:
Error: [$injector:unpr] Unknown provider: testProvider`
If you'd like to take a look at the code, here's the Plunkr link. It seems simple, but for some reason it's not working as expected.