I want to implement following scenario in angularjs please suggest me best way for thia.
I have written one method named 'CollectAll()' which contains block of code for http get records. This block of code i have written inside for loop to execute it 10times.
Another method named 'saveAll()' which sends data to backend using httppost which requires above collected data from first method.
These two functions i want to execute one after another. Because second is dependent on first. But first function has many http calls and combine result i want to pass it to sexond method as input for http post request.
Please suggest me best solution for this.
Thanks.