$promise stays promised on 'then' function
<p>I'm using angular's <code>$resource</code> to perform a GET operation. This is how I do it:</p>

<pre><code>var query = {customerid: $stateParams.customerid}    
$resource('api/reports/running_count').get(query).$promise.then(function(value) {
    $scope.runningInstance = value;
});
</code></pre>

<p>I also tried it like that:</p>

<pre><code>$resource('api/reports/running_count').get(query, function(value) {
    $scope.runningInstance = value;
});
</code></pre>

<p>The request returns a number. I checked the response with chrome's developer-tools. The request is indeed sent as follows:</p>

<pre><code>&lt;base-url&gt;/api/reports/running_count?customerid=&lt;id&gt;
</code></pre>

<p>The response returns a number, again as expected.</p>

<p>But when I put a breakpoint in the callback function, the <code>value</code> is again a promise and not a number. Not sure what I'm doing wrong.</p>