I've inherited the following code, and I need to get $resource injected into the service. I'm new to AngularJS and not finding the documentation very helpful. Everything I've tried has failed. Any ideas?
(function (angular) {
angular.module('myModule')
.provider('myService', [myServiceProvider]);
function myServiceProvider() {
...
}
Thanks.