// js/services/user.service

(function() {
  "use strict";

  angular.module("NoteWrangler")
    .factory("User", UserFactory);

  UserFactory.$inject = ["$routeParams", "$resource"];

  function UserFactory($routeParams, $resource) {
    return $resource("/api/users/:id", {id: "@id"});
  }
})();

// js/services/user.service

(function() {
  "use strict";

  angular.module("NoteWrangler")
    .factory("User", UserFactory);

  UserFactory.$inject = ["$routeParams", "$resource"];

  function UserFactory($routeParams, $resource) {
    return $resource("/api/users/:id", {id: "@id"}, {});
  }
})();

Add empty object to $resource
Add empty object to $resource
