Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Support for method shorthand definition #23

@chuckyblack

Description

@chuckyblack

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions