title: Angular JS: Loading bar on CSV download from REST service
body: <p>I have the below code snippet, which calls REST service to download CSV.</p>
  
  <pre><code>var link = document.createElement('a');
  link.setAttribute('href',rest_URL);
  document.body.appendChild(link);
  link.click();
  </code></pre>
  
  <p>Now I am planning to show loading bar upon link click until CSV downloaded to the browser. How to do it??</p>
  
  <p>I tried to use <strong>$http</strong>, but i don't want to show the content as object, then convert to CSV.</p>
  
  <p>Is there any <strong>Angular</strong> feature available to monitor the link click, and trigger the event upon link action completed?.</p>
  
  <p>I have loading bar code, just need help on getting the <strong>action complete event</strong> after the response returned from anchor tag above, not via <strong>$http</strong>.</p>
  
  <p>Some Angular expertise would be greatly helpful.</p>