title: display loading animation while slow algorithm work AngularJS
body: <p>I want to display loading animation at the page while algorithm works. How can I do it using angular promises? For example :</p>
  
  <pre><code>&lt;div ng-hide='algEnded' &gt; Content to hide while alg. works&lt;/div&gt;
  &lt;div ng-hide='!algEnded' &gt; &lt;img href='img/loading.svg'&gt; &lt;/div&gt;
  </code></pre>