Is it possible to inject one service into another service in angularJS?
Yes. Like this (this is a provider, but same thing applies)
module.provider('SomeService', function () {
this.$get = ['$q','$db','$rootScope', '$timeout',
function($q,$db,$rootScope, $timeout) {
return reval;
}
});
In this example, $db
is a service declared elsewhere in the app and
injected into the provider's $get
function.