- angular.config only accepts providers
- Every service and factory are the instances of the providers
e.g.
angular.module('myApp') .service('FooService', function(){ //...etc }) .config(function(FooServiceProvider){ //...etc });
Reference: http://stackoverflow.com/questions/17485900/injecting-dependencies-in-config-modules-angularjs
沒有留言:
張貼留言