Is it possible to do DI in a provider method?
In this example
angular.module(\'greet\',[]) .provider(\'greeter\',function() { this.$get=function()
You can certainly inject $http to provider. Just make sure it appears in $get, not the function constructor. As follows:
$http
$get
angular.module('greet',[]).provider('greeter',function() { this.$get = function($http) { }; });