title: Show loading animation for slow script using AngularJS?
body: <p>In angularjs 1.2 operations like filtering an <code>ng-repeat</code> with many rows (>2,000 rows) can become quite slow (>1 sec).<br>
  I know I can optimize execution times using <code>limitTo</code>, pagination, custom filters, etc. but I'm still interested to know if it's possible to show a loading animation while the browser is busy running long scripts.</p>
  
  <p>In case of angular I think that could be invoked whenever <code>$digest</code> is running because that seems to be the main function that takes up most time and might be called several times.  </p>
  
  <p>In a <a href="https://stackoverflow.com/questions/22334822/angularjs-display-something-when-filtering-is-slow">related question</a> there were no useful answers given. Any help greatly appreciated!</p>