The $q.all
is resolving before either of its functions has resolved.
I\'m uploading two files to azure blob storage using $.ajax (I couldn\'t get $http to w
After doing some research and thinking about the various comments from @charlietfl, the only way I could get the $q.all to work properly is do assign the function call to a variable and then push it into the array that is being passed to q.all.
for (var i in result.photos)
{
var output = doPhotos(result, i);
doPhotosArray.push(output);
}
The various examples that I used for reference seem to indicate that the code in my original question should work but doesn't.