title: Can't POST data through Angular $resource?
body: <p>I'm trying to figure out how to pass data to an API through Angular's <code>$resource</code>.  I can <code>GET</code> or query any data from my test server currently, but I also want to see how to <code>POST</code> new data to the server.  I am using this code that I've adapted from the AngularJS docs:</p>
  
  <pre><code>.factory("ResourceTest", function($resource) {
      return $resource("http://mywebsite.com/api/:id", {id:'1'}, {
          charge: {method:'POST', params:{charge:true}}
      });
  });
  </code></pre>
  
  <p>When I run <code>ResourceTest.charge();</code> in my controller, it works fine, and I see a <code>POST</code> request in my server logs.  But when I try to pass any parameters when I call the function (eg <code>ResourceTest.charge({test:false});</code>), the request will not go through, and I can't see any request in the logs. (same happens with <code>.save()</code>, in case anyone is wondering)</p>
  
  <p>Anyone know if it's just a code error I'm making here? I'm pretty new to AngularJS.  Thanks!</p>