btford/ngmin

Support services as function references

roryf opened this issue · 1 comments

Like a lot of the angular core, I tend to write controllers something like this:

function MyController($scope) { /* ... */ }

angular.module('MyApp').controller('MyController', MyController);

I didn't really understand the AST code very well, so don't know if this is possible.

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.