Angular JS: why the difference between module.config injection and controller injection?
This is something that I could not figure out from digging into the AngularJS code, maybe you can help solve the mystery. To show it, I added a service to AngularJS seed project: function MyServiceProvider() { console.log('its my service'); this.providerMethod = providerMethod; function providerMethod() { console.log('its my service.providerMethod'); } this.$get = $get; function $get() { var innerInjectable = { name: 'stam' }; return innerInjectable; } } var serviceModule = angular.module('myApp.services', []). value('version', '0.1'). provider('myservice',MyServiceProvider); You can see that