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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -