Is there any difference between the following two code snippet? Both work.
1.
myApp.controller("myAppController", ["$scope", function($scope) {
// function body
}]);
2.
myApp.controller("myAppController", function($scope) {
// function body
});