Support minification of $httpProvider.responseInterceptors.push functions
Closed this issue · 9 comments
chadly commented
This currently doesn't get processed correctly:
$httpProvider.responseInterceptors.push(function ($q, $location) {
...
});
This is the only spot in my code right now that I have to manually configure.
Not sure if this is related to #35 or if the fix for that will also support this.
olanod commented
+1
hartror commented
Uncaught Error: Unknown provider: aProvider <- a <- $http <- userService
Hit this error today. Was a tad bit confusing at first and took a while to track down the problem to $httpProvider.responseInterceptors.push
.
mikhae1 commented
+1
travischoma commented
+1
ormagomy commented
+1
Cordobo commented
+1
stefan-- commented
$httpProvider.responseInterceptors.push(['$q', '$location',
function ($q, $location) {
...
}
]);
eddiemonge commented
Please try https://github.com/olov/ng-annotate. ngmin is now deprecated: #93
If your issue isn't resolved there please open an issue at https://github.com/olov/ng-annotate/issues
If you really want ngmin to fix this issue, feel free to fork it and use that.