Closed darcnite3000 closed 9 years ago
Interesting, did not know that.
this shouldn't be an issue on latest though. Since we manually annotated the items.
I tried all sorts of variations of that and couldn't get it to work right. =( The one I didn't try was putting the 'ngInject'
inside of the method like @darcnite3000 has done, I thought it had to occur above it based on the docs. =(
I just tested it and his fix works, but honestly, I don't see it as that much of a stylistic benefit. =( It is far more clear to just write out the injection.
I agree, don't love the special syntax
I was mainly showing how it could work without manually annotating. In the end it comes down to preference.
@darcnite3000 - absolutely and thanks for the share.
https://github.com/olov/ng-annotate#explicit-annotations-with-nginject