One method passes an array, the other a function; is there a difference between the two? Should one be used over the other depending on the situation? What's the point in naming all the variables twice?
Is "variable" the correct term for what's being passed in, or is there a more specific term for these particular types of variables in AngularJS?
config(['$routeProvider', function($routeProvider) {
vs
.config(function ($routeProvider) {