are these two equal?
Is the latter just a "shorthand way" to write a controller?
angular.module("root", [])
.controller("index", ["$scope", function ($scope) {
// ..
}]);
vs
angular.module("root", [])
.controller("index", function ($scope) {
// ..
});
Thanks!