btford/ngmin

minifications fails

waqasajaz opened this issue · 2 comments

ngmin does not work if i write controller in following way:

 var myMod = angular.module('myMod', ['aaa','bbb']);
myMod.controller('myCtrl', function ($scope) {
  // ...
}); 

But If I write it like this

angular.module('myMod', ['aaa','bbb']);
angular.module('myMod').controller('myCtrl', function ($scope) {
  // ...
});

then it works

I suppose, it's correct because of global variables.

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.