Closed
Description
We should be using ng-annotate via grunt-ng-annotate to avoid verbose function declarations when using dependency injection.
It turns this:
angular.module("MyMod").controller("MyCtrl", function($scope, $timeout) {
});
into this
angular.module("MyMod").controller("MyCtrl", ["$scope", "$timeout", function($scope, $timeout) {
}]);
automatically at build time so minificaiton is safe.
Metadata
Metadata
Assignees
Labels
No labels