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

Annotations dont work when @ decorator is used in service

Open pranavkaushik9 opened this issue 7 years ago • 2 comments

I have a class written in ES6 style which is then exposed as angular service Annotations are working fine until this class used @ decorator.

I am using mobx actions which requires methods to be decorated with @action. The moment I use @action inside my class annotations start breaking.

Is this a known issue?

pranavkaushik9 avatar Sep 14 '17 10:09 pranavkaushik9

I have this issue too, and it's very pity :(

Maximaximum avatar Apr 18 '18 13:04 Maximaximum

It seems like we simply need to use this acorn plugin : https://github.com/angelozerr/acorn-es7 But how do we include it into the pipeline?

Maximaximum avatar Apr 18 '18 14:04 Maximaximum