Currently, I am trying to implement an Angular HttpInterceptor based on the solution provided in this Stack Overflow response:
However, I am struggling with the factory method:
public static Factory($q: ng.IQService) {
return new AuthenticationInterceptor($q);
}
It seems that we are reliant on the $q service being injected, but this will create issues when the code is minified. How can I ensure that it remains minification-safe? Would using the string array syntax be a viable solution?