title: Assign value from successful promise resolve to external variable
body: <p>I have a pretty silly problem. Consider the following:</p>
  
  <pre><code>vm.feed = getFeed().then(function(data) {return data;});
  </code></pre>
  
  <p><code>getFeed()</code> returns a $q deferred promise (I am on angular) that resolves successfully.</p>
  
  <p>My goal is to set vm.feed equal to the data value returned by the successful callback. As it is right now, the code simply assigns vm.feed equal to the <code>$promise</code> object returned by <code>getFeed()</code>.</p>
  
  <p>I know I could simply do: <code>vm.feed = data</code> inside the resolved function but I want to understand why this code does not work as it is.</p>
  
  <p>PD: the promise resolves correctly and even after it has been resolved vm.feed keeps being equal to the Promise, and not data. I copy the console.log of vm.feed after +10 seconds have elapsed:</p>
  
  <pre><code>Promise {$$state: Object} $$state: Objectstatus:1 value: Object
  </code></pre>
  
  <p>That value property inside the Promise object contains the actual solution of the promise that I want to assign to vm.feed (e.i. <code>data</code>).</p>
  
  <p>thank you!</p>