title: Default $resource POST data
body: <p>That might be strange but I need to specify some default POST data for my $resource using the factory method of the module.</p>
  
  <p>Does anyone have an idea of how to do that in AngularJS ?</p>
  
  <p>EDIT : </p>
  
  <p>Well, i want to do something like this : </p>
  
  <pre>/**
   * Module declaration.
   * @type {Object}
   */
  var services = angular.module("services", ["ngResource"]);
  
  /**
   * Product handler service
   */
  services.factory("Product", function($resource) {
      return $resource("http://someUrl", {}, {
          get   : {method: "GET", params: {productId: "-1"}},
          update: {method : "POST", params:{}, <b><i>data: {someDataKey: someDataValue}</i></b>}
      });
  });</pre>
  
  <p>Where data is the default data for my future POST requests.</p>