title: How to make $http.get return response instead of promise object?
body: <pre><code>var final;
  final = $http.get('http://localhost:9000/therapist_data',config)
               .success(function(response) {
              console.log("I got the data I requested");
              var resdata = response;
              console.log(resdata);
              return resdata;
          });
  
  console.log(final);
  </code></pre>
  
  <p>I am trying to return response data and store it into final variable instead I am getting the promise object.<br>
  How do I return actual data?</p>