marcioj/babel-plugin-angular-annotate

Classes aren't annotated when passed directly to module.<type>

Closed this issue · 0 comments

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