title: angular-resource not being properly injected with AMD
body: <p>I fail to make angular.resource.js work with angular.js. Angular is loaded but it seems angular.resource is not.</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;script&gt;
            var require = {
              shim: {
                angular: {
                  exports: "angular"
                },
                "angular.resource": {
                  deps: [ "angular" ]
                }
              }
            };
          &lt;/script&gt;
          &lt;script src="require.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div ng-controller="TagsController"&gt;
              Example
          &lt;/div&gt;
          &lt;script&gt;
              require( ["TagsInit"] );
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>TagsInit.js</p>
  
  <pre><code>define([
      "angular",
      "angular.resource",
  ], function( angular ) {
      var module = angular.module( "app.customer", [] );
  
      module.controller( "TagsController", function( $scope, tagsService ) {
          console.log( "TagsController executed" );
      });
      module.service( "tagsService", function( $resource ) {
          console.log( "TagsService executed" );
      });
  
      angular.bootstrap( document.body, [ "app.customer" ] );
  });
  </code></pre>
  
  <p>I suppose it is somethign related to the shim config but I fail to realize it:</p>
  
  <pre><code>shim: {
      angular: {
          exports: "angular"
      },
      "angular.resource": {
          deps: [ "angular" ]
      }
  }
  </code></pre>
  
  <p>Using  AngularJS v1.3.0-beta.2 and angular.resource (same version).</p>
  
  <p>I get:</p>
  
  <pre><code>Error: [$injector:unpr] Unknown provider: $resourceProvider &lt;- $resource &lt;- tagsService
  http://errors.angularjs.org/1.3.0-beta.2/$injector/unpr?p0=%24resourceProvider%20%3C-%20%24resource%20%3C-%20tagsService
  </code></pre>