title: Value Returned from Angular JS $resource POST Not Matching Server Output
body: <p>I have a resource factory with a POST method called update:</p>
  
  <pre><code>PnrApp.factory('Feed', function ($resource, $cacheFactory, $q, $rootScope) {
  var Feed = $resource('api/feeds/:post', { post: 'post' }, {
              get: { method:'GET' },  
              update: { method: 'POST' }
  
          });
  return Feed;
  </code></pre>
  
  <p>});</p>
  
  <p>When I call the method it POSTs the data to the server as expected:</p>
  
  <pre><code>    $rootScope.toggleStar = function (post, feedname) {
      var updated = Feed.update(post);
      this.child.StarId = updated.StarId;
  }
  </code></pre>
  
  <p>And the server returns the correct values (notice the StarId in this json):</p>
  
  <pre><code>{"Name":"13 Ways to Act Like A Business Owner","ItemDate":"June 6, 2013","Url":"/post/13-Ways-to-Act-Like-A-Business-Owner-Stop-Acting-Like-an-Advisor-All-the-Time-(6-min-03-sec).aspx","StarImg":"bulletstar-on.png","StarId":1324,"StarDate":"0001-01-01T00:00:00","FeedCount":0,"FeedId":19,"SourceIcon":null,"IsBroken":false,"ItemId":"01"}
  </code></pre>
  
  <p>However, if you look at var updated's return value for StarId, notice how it's "0":</p>
  
  <p><img src="https://i.stack.imgur.com/5Kw9I.jpg" alt="enter image description here">
  <img src="https://i.stack.imgur.com/nIFGU.jpg" alt="enter image description here"></p>
  
  <p>Can someone explain why this is, and how I can get at the return values in this situation?</p>