title: How to access response headers using $resource in Angular?
body: <p>I basically call <code>get</code> requests like so:</p>
  
  <pre><code>var resource = $resource('/api/v1/categories/:id')
  
  resource.get({id: 1}).$promise.then(function(data){
    console.log(data)
  })
  </code></pre>
  
  <p>This works fine.. but how do I get the response headers?</p>