by skore · 13y ago · 0 comments
> dependency injection minification headaches
Meh, that's hand-wavy at best. The only thing you have to do to pass minification is to include the injected dependencies in an array like so:
['$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
// Stuff
}]
You get used to it in seconds and then it's not really an issue anymore.There's also a grunt plugin. https://github.com/btford/grunt-ngmin
Also I don't like having to organize unrelated code into factories and services just because that's how Angular wants to view the world.