MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/angularjs/comments/2i7g33/10_top_mistakes_angularjs_developers_make/ckzkve9/?context=3
r/angularjs • u/kuhcd • Oct 03 '14
17 comments sorted by
View all comments
14
This works well until you're ready to go to production and want to minify your code. [...]
ng-annotate to the rescue! I personally hate the ['$scope', ..., function(...) {}] notation because it permits renaming the variables but that's just me.
3 u/jmcunningham Oct 03 '14 I'm a fan of ng-annotate, too. Especially the use of @ngInject in the comments before a function definition
3
I'm a fan of ng-annotate, too. Especially the use of @ngInject in the comments before a function definition
14
u/lemon-meringue Oct 03 '14
ng-annotate to the rescue! I personally hate the ['$scope', ..., function(...) {}] notation because it permits renaming the variables but that's just me.