Lets say I got three different functions that make $http calls. The three functions are called one after the other.
Is there any way to know when all of them have finished?
Lets say I got three different functions that make $http calls. The three functions are called one after the other.
Is there any way to know when all of them have finished?
Take a look at the documentation of promises. You can use $q.all(promises)
to combine multiple promises in one new promise. The new promise is resolved when all of the input promises are resolved.