How can promises be implemented around the provided http get request?
$http({
method: 'GET',
url: 'getData.php',
params: {bill: 'Active'}
})
.then(function (response) {
bill=response.data.results;
});
There is a need for the processing to wait until all the http requests are completed. To achieve this, I want to implement promises and then return promises at the end of the function. What would be the best way to go about implementing promises in this scenario?