Closed mlegenhausen closed 11 years ago
+1, just encountered this myself.
I'm not able to reproduce this on master:
$ cat test.js
angular.module('foo', [])
.constant('someConstant', {
//
})
.service('someService', function(someDep) {
//
})
;
$ ./bin/ngmin < test.js
angular.module('foo', []).constant('someConstant', {}).service('someService', [
'someDep',
function (someDep) {
}
]);
;
With the latest version of ngmin the problem is fixed. I get the same result with version 0.3.6. I encountered the problem with the grunt-ngmin task. Please update the ngmin dependency.
Working:
Not working:
In the first code example the service definition gets annotated, in the second not. This happens with the other functions like
factory
,provider
,run
aso too.