Classes aren't annotated when passed directly to module.<type>
Closed this issue · 0 comments
marcioj commented
For instance the following doesn't work:
angular
.module('app.reports')
.controller('ReportsController', class ReportsController {
constructor(data) {
this.data = data;
}
});
But the code bellow does:
class ReportsController {
constructor(data) {
this.data = data;
}
}
angular
.module('app.reports')
.controller('ReportsController', ReportsController);