title: how to fix $resource:badcfg in my case?
body: <p>Here is my js code</p>
  
  <pre><code>var MYModule = angular.module('myApp', ['ngRoute', 'myAppServices'])
      .directive('loading',   ['$http', loadingDirective])
      .config(myRouter);
  
  angular.module('myAppServices', ['ngResource'])
      .factory('Users', function($resource) {
          return $resource('/MY/system/users');
      });
  
  function UsersCtrl($scope, Users) {
      $scope.users = Users.query();
  }
  </code></pre>
  
  <p>in my html code just using this</p>
  
  <pre><code>&lt;div ng-repeat="item in users"&gt;Hello&lt;/div&gt;
  </code></pre>
  
  <p>Although I am getting request in my server code at /MY/system/users but the browser is throwing error</p>
  
  <pre><code>Error: [$resource:badcfg] http://errors.angularjs.org/1.2.16/$resource/badcfg?p0=array&amp;p1=object
      at Error (native)
  </code></pre>