angularjs - Injecting an annotated Service in a Provider in Angular -


i use service in provider. i'm not sure it's right way go.

i've managed instantiate service in provider, injecting service provider instead, , calling .$get() method.

if service requires dependencies, gets harder. keeps working if dependencies inferred: call .$get(), returns correct function , dependencies right.

but if try dependency annotation, it's way work through minification, $get() returns annotation array defined it. thought use injector.$invoke(),but seems cannot resolve dependencies anymore.

i created plunker here:

http://plnkr.co/edit/tplf3vqumwght46q3aaa?p=preview

things tricky @ line 90, , line 112 problem lies.


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -