Closed hawkwind2 closed 9 years ago
That should work.
动态加载的模块里的 app.config(function ($httpProvider) { $httpProvider.interceptors.push('authInterceptorService'); }); 拦截器没有执行
@angular-moon app.config
must be ran before calling angularAMD.bootstrap
for it to work.
Another one please, how do I use that code in AMD? When we have $routeProvider...
app.config(function ($httpProvider) { $httpProvider.interceptors.push('authInterceptorService'); });