Hey there, I have a question about managing dependencies. Let's take a look at this example:
MyApp.controller("MyController", ["$scope", "$document", "$timeout", "SomeService",
function(scope, doc, timeout, service){
/*Some Code here*/
}]);
The list of dependencies along with the function statement requires a lot of writing and can look messy. I'm aware that I could put all these elements in an array and then inject it into the controller definition, but I'm not sure if that's the best approach. How can I make the controller definition with dependencies more clear? Do you recommend using RequireJS or another solution?
Thanks for your help!