I need to do two $http.get call and I need to send returned response data to my service for doing further calculation.
$http.get
I want to do something like below:
There's a simple and hacky way: Call the calculation in both callbacks. The first invocation (whichever comes first) sees incomplete data. It should do nothing but quickly exit. The second invocation sees both product lists and does the job.