Is it possible to intercept html, css and js files used in angularjs?
问题 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? This is the code of the interceptor I mentioned above: app.factory('redirectInterceptor', function($q,$location,$window){ return { 'response':function(response){ if (typeof response.data === 'string' && response.data.indexOf("My Login Page")>-1) { $window.location.href = "/login