title: Is it possible to intercept html, css and js files used in angularjs?
body: <p>I have already created an http interceptor and based on my observation, it only applies to all that uses $http service. What if I want to intercept even the css, html and js files used in the template? Is it possible?</p>
  
  <p>This is the code of the interceptor I mentioned above: </p>
  
  <pre><code>app.factory('redirectInterceptor', function($q,$location,$window){
  return  {
      'response':function(response){
      if (typeof response.data === 'string' &amp;&amp; response.data.indexOf("My Login Page")&gt;-1) {
          $window.location.href = "/login.html";
          return $q.reject(response);
      }else{
          return response;
      }
      }
  }
  
  });
  
  app.config(['$httpProvider',function($httpProvider) {
      $httpProvider.interceptors.push('redirectInterceptor');
  }]);
  </code></pre>
  
  <p>I want to be able to do an interceptor for css, html and js (for template) just like the one above.</p>