The so-called $window 其实是对浏览器 window secondary packaging of object references, so why is there this thing? The purpose is mainly for code testability.
So, the conclusion is that this thing has nothing to do with $http, and naturally it will not use interceptors
Of course, I still understand the title of the question, but I just hope to do some extra things when making jumps. This problem can only be solved from the perspective of routing.
The official document explains clearly and has examples
https://docs.angularjs.org/ap...$http
Jump to a new page without executing the code in the interceptor
I remember it was html and interface request, I console.log it before
The so-called
$window
其实是对浏览器window
secondary packaging of object references, so why is there this thing? The purpose is mainly for code testability.So, the conclusion is that this thing has nothing to do with $http, and naturally it will not use interceptors
Of course, I still understand the title of the question, but I just hope to do some extra things when making jumps. This problem can only be solved from the perspective of routing.
Above!