Closed aramk closed 8 years ago
Is angular.extend()
your problem, or is it the fact that you're doing this in an ES6 export
statement?
Either way, I don't think that there's a good path for implicitly detecting annotatable functions inside of something like angular.extend()
, _.extend()
, or Object.assign()
without hard-coding lots of special cases, or potentially picking up tons of false-positives.
Adding /*@ngInject*/
is definitely the way to go here.
angular.extend()
usage doesn't seem to be supported by ng-annotate:Adding
/*@ngInject*/
did it for me: