Currently, my controllers are set up using array injection. However, as I pass more services to the controller, I end up repeating each one twice - in the array and as a parameter.
I came across a helpful discussion on Injecting a service into another service in angularJS where it was mentioned that I don't necessarily have to use array injection to avoid repetition, but this can lead to issues with minification. John Ledbetter added that using ngmin can help bypass this problem.
My question is, what if I define my controller like this:
appControllers.controller('LoginController', function($scope, $rootScope, $localStorage, myService1, myService2) {
Instead of:
appControllers.controller('LoginController', [ '$scope', '$rootScope', '$localStorage', 'myService1', 'myService2',
function($scope, $rootScope, $localStorage, myService1, myService2) {
Are there any implications to this approach aside from needing to use ngmin during minification with grunt?