Closed clemgrim closed 7 years ago
Interesting.
While I look into this, there are a few workarounds you can use:
export class A {
/* @ngInject */
constructor(test){
this.test = test;
}
}
and
export class A {
constructor(test){
'ngInject';
this.test = test;
}
}
will both work.
In general, the second syntax (prologue directives) is going to be more reliable, as other tools/transformations should leave these untouched (whereas comments are frequently moved around or mangled by other transformations).
fixed in 0.8.0
Hello,
ngInject does not work when exporting a class, it worked with ng-annotate.
This works.
This doesn't.
This does.