title: Asynchronous angularJS - how to wait each request callback?
body: <p>I'm  building an angular application, there are many ajax calls.
  I need to wait for each call response to get data from it, that why I make the 
  synchronous.</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: servicePath,
      cache: false,
      contentType: "application/json; charset=utf-8",
      dataType: "json",
      async: false,
      data: "{}",
      success: success,
      error: error
  });
  </code></pre>
  
  <p>But this is a problem because if I call "showPleaseWait()"(this is a loading popup) it is not showing, because DOM is not updating unless ajax call is not complete.
  It's showing if I'll make my call async, but I can't get my data that time.</p>
  
  <p>Please, can you help me to solve this problem?</p>