title: Get result of rest request instead of response?
body: <p>I have the following function in my controller.</p>
  
  <pre><code>RestRequestsSrvc.getUserDetail()
    .then(
      function (response) {
        $scope.user.userDetail = response;
      },
      function (error) {
        // TODO
      });
  </code></pre>
  
  <p>If I type </p>
  
  <p><code>console.log(RestRequestsSrvc.getUserDetail());</code> </p>
  
  <p>the console logs a promise. I want to set a variable the the response. How can I modify my code so that I get the response instead of a promise?</p>