ng-annotate-patched icon indicating copy to clipboard operation
ng-annotate-patched copied to clipboard

Support for method shorthand definition

Open chuckyblack opened this issue 3 years ago • 0 comments

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) {
	}
});

chuckyblack avatar Nov 08 '22 19:11 chuckyblack