Mandar Shinde

Mandar Shinde

  • NA
  • 423
  • 115.6k

Regarding calling same function in loop

May 2 2019 2:27 AM
Dear All,
I am was bulding one component using Angular 5 and ASP .Net MVC with REST API.
My problem is that I have one function with me and I want to call it using for loop.
What i am facing is that though first request is not completed still second function is get called.
In short you can say that I want to make it synchronously.When first function call get completed then and then only second function call should done by using loop.
Please let me know easy solution.
Your solutions are always valueable for me.
Thanking You In Advance. 

Answers (3)