ng-annotate-patched
ng-annotate-patched copied to clipboard
Support for method shorthand definition
Everything works ok If I use class method definition:
angular.component('example', {
controller: function($scope) {
}
});
But there is problem with method shorthand definition:
angular.component('example', {
controller($scope) {
}
});
This is compiled to:
angular.component('example', {
controller["config", "$scope", "CategoryEnum", (config, $scope, CategoryEnum) {
}
});