the problem is in config you can only use providers and not factories/controllers etc.
I would try using the $injector, or as you said with broadcast.
there is a similar post here:
here an other ressource:
the problem is in config you can only use providers and not factories/controllers etc.
I would try using the $injector, or as you said with broadcast.
there is a similar post here:
here an other ressource: