title: Getting the resource into controller
body: <p>I'm in trouble getting my service inside the controller. This project is under
  the lastest yeoman which creates the templates for me and merges the files when build.</p>
  
  <p>When changing something the angular just stops working and no error is displayed in console.</p>
  
  <p>The error message is :</p>
  
  <pre><code>ReferenceError: UserService is not defined
  at new &lt;anonymous&gt; (http://localhost:9000/scripts/controllers/people.js:5:25
  at invoke (http://localhost:9000/components/angular/angular.js:2864:28)
  at Object.instantiate (http://localhost:9000/components/angular/angular.js:2874:23)
  at http://localhost:9000/components/angular/angular.js:4759:24
  at &lt;error: illegal access&gt;
  at Object.Scope.$broadcast (http://localhost:9000/components/angular/angular.js:8261:28)
  at http://localhost:9000/components/angular/angular.js:7417:26
  at wrappedCallback (http://localhost:9000/components/angular/angular.js:6797:59)
  at wrappedCallback (http://localhost:9000/components/angular/angular.js:6797:59)
  at http://localhost:9000/components/angular/angular.js:6834:26 
  </code></pre>
  
  <p>App.js : </p>
  
  <pre><code>'use strict';
  
  angular.module('jellybeanApp', ['jellybeanApp.Service'])
  .config(function ($routeProvider, $locationProvider) {
  $locationProvider.html5Mode(true);
  
  $routeProvider
    .when('/', {
      templateUrl: 'views/main.html',
      controller: 'HomeController'
    })
    .when('/people', {
      templateUrl: 'views/people.html',
      controller: 'PeopleCtrl'
    })
    .otherwise({
      redirectTo: '/'
    });
   });
  </code></pre>
  
  <p>My service : </p>
  
  <pre><code>'use strict';
  
  angular.module('jellybeanApp.Service', ['ngResource'])
    .factory('UserServices', function ($rootScope, $resource, $routeParams, $location) {
  return {
    users : function() {
      return $resource('notimportant',
        {action: 'user', callback: 'JSON_CALLBACK'},
        {
          get: {method: 'JSONP', params: {UserId: $routeParams.UserId}},
          query: {method: 'JSONP'},
          create: {method: 'POST'}
        });
    }
  };
  });
  </code></pre>
  
  <p>Controller : </p>
  
  <pre><code>'use strict';
  
  angular.module('jellybeanApp')
   .controller('PeopleCtrl', function ($scope, UserServices) {
  $scope.userResult = UserService.users().query();
  
  });
  </code></pre>