Loopback ng-sdk model not updating when using $q.resolve
<p>Im using Loopback Angular SDK, and, when im updating a model, if i use $q.resolve, the model doesnt update.</p>

<p>Example:</p>

<pre><code>bpmService.createDocument(newDocument)
  .then(function (nd) {
     Oc.prototype$updateAttributes({originalOc.id, documentId: nd.document.id}).$promise
       .then(function(res){                 
            deferred.resolve(res);                 
        });
     });
</code></pre>

<p>The weird issue is, when i comment the line //deferred.resolve(res); the model updates!!!</p>

<p>Im missing something?</p>