When looking at examples of an Angular controller I have seen this (named function):
function GreetingController($scope) {
$scope.greeting = 'Hola!';
}
And this (anonymous function):
var GreetingController = function ($scope) {
$scope.greeting = 'Hola!';
}
Is there any real difference in this syntax when using these from Angular?