Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support minification of $httpProvider.responseInterceptors.push functions #37

Closed
chadly opened this issue Jun 22, 2013 · 9 comments
Closed
Milestone

Comments

@chadly
Copy link

chadly commented Jun 22, 2013

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.

@btford
Copy link
Owner

btford commented Jun 24, 2013

This is separate from #35, but also worthwhile.

@olanod
Copy link

olanod commented Sep 26, 2013

+1

@hartror
Copy link

hartror commented Jan 22, 2014

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
Copy link

mikhae1 commented Feb 28, 2014

+1

3 similar comments
@travischoma
Copy link

+1

@ormagomy
Copy link

ormagomy commented Apr 2, 2014

+1

@Cordobo
Copy link

Cordobo commented May 3, 2014

+1

@stefan--
Copy link

stefan-- commented May 7, 2014

$httpProvider.responseInterceptors.push(['$q', '$location', 
  function ($q, $location) {
  ...
  }
]);

@eddiemonge
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants