title: How do I not send url template parameters with request body in angular?
body: <p>Suppose I have a resource set up like this:</p>
  
  <pre><code>resource = $resource(
      "http://foo.com/service/:type/:id",
      {},
      {save: {method:'PUT', params: {type:'@type', id: '@id'}}}
  );
  resource.save({type:'user', id:14, name:'Bob Dole'});
  </code></pre>
  
  <p>Is there any way I can prevent <code>type</code> and <code>id</code> from being submitted as part of the request body, and just send <code>name</code> in the PUT payload? I don't control the API I am submitting to, and it seems to not like the extra parameters I am sending it.</p>
  
  <p>Thanks!</p>
  
  <p><strong>Update</strong> - 10/25/13 - 13:38</p>
  
  <p>The documentation for <a href="http://docs.angularjs.org/api/ngResource.%24resource">resource</a> says this:</p>
  
  <blockquote>
    <p>If the parameter value is prefixed with @ then the value of that parameter is extracted from the data object (useful for non-GET operations).</p>
  </blockquote>
  
  <p>That implies that this ought to remove the parameters from the data:</p>
  
  <pre><code>resource.save({type:'@user', id:'@14', name:'Bob Dole'});
  </code></pre>
  
  <p>but it doesn't seem to work. Still at a loss.</p>