title: AngularJS How to show spinner during $http request
body: <p>When I starting app for the first time, after login I make one http request to server and wait couple second for response while server make things done. While I am waiting I can click on some link and walk trough app. I want to disable this and make some loading gif across all page, but I don't know how to do that.</p>
  
  <p>My Controller:</p>
  
  <pre><code>vm.starting = starting;    
  function starting() {
      dataService.restartVersion().then(function (data) {
  
      });
  }
  </code></pre>
  
  <p>My Service</p>
  
  <pre><code>function restartVersion() {
      return $http.post('http://localhost/organization/restartVer', {
      }).then(function(response) {
          return response.data;
      });
  }
  </code></pre>
  
  <p>How to implement something in my code to show loading gif across all page?</p>
  
  <p>Any helps?</p>
  
  <p>Thanks in advance</p>