title: How to inject $resource into provider?
body: <p>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?</p>
  
  <pre><code>(function (angular) {
  
  angular.module('myModule')
      .provider('myService', [myServiceProvider]);
  
  function myServiceProvider() {
      ...
  }
  </code></pre>
  
  <p>Thanks.</p>