Lu4*_*Lu4 8 angularjs
有没有办法向提供者注入$ q,在我的情况下,角度抛出异常告诉没有这样的提供者.
Los*_*ter 17
对于提供者,值将在$ get函数中注入.
myApp.provider('testProvider', function() { this.$get = function($q) { }; });
更多细节在这里:
AngularJS:服务与提供商vs工厂
https://gist.github.com/Mithrandir0x/3639232
归档时间:
13 年,4 月 前
查看次数:
4719 次
最近记录: