So thanks to ng-annotate, now we can minify our code successfully when it looks like this:
angular.module('YeomanApp')
.controller('YeoCtrl', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});
Are there any advantages to this form over this form:
angular.module('YeomanApp')
.controller('YeoCtrl', ['$scope', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
}]);
The latter explicit dependency declaration seems to be the norm, but are there any advantages or reasons to continue using it at this point?