I'm an Angular beginner, I'm trying to understand the difference between import something in a controller, for example $http, in [] and like parameter in function.
In other words, what is the difference between something like this
.controller('customersCtrl', function($scope, $http) {
...
});
and this
.controller('customersCtrl',['$scope', '$http', function($scope, $http) {
...
}]);
I checked out documentation and a lot of examples about it but I don't understand.
Thanks in advance and sorry for my basic question.
Regards