Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var queryResource = resource().query(queryParams, function(complianceReports) {
queryResource = processResponse(complianceReports);
});
return queryResource.$promise;
@6ewis

This comment has been minimized.

Copy link
Owner Author

6ewis commented Dec 23, 2014

var deferred = $q.defer();
resource().query(queryParams, function(complianceReports) {
deferred.resolve(processResponse(complianceReports));
});
return deferred.promise;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.