title: AngularJs - defer resolve object
body: <p>i've a function that return a boolean according to http.get call.</p>
  
  <pre><code>function checkValue (value) {
      var defer = $q.defer();
      var request = $http({
            method: "get",
            url: "someurl"
      });
  
        request.success(function (data) {
          defer.resolve(data.response);
  
      });
      return defer.promise;
  }
  </code></pre>
  
  <p>The problem is that return value is an object like this:</p>
  
  <p><code>d {$$state: Object}
  $$state: Object
  status: 1
  value: true
  __proto__: Object
  __proto__: d</code></p>
  
  <p>How could i resolve it?</p>