ng-metadata
ng-metadata copied to clipboard
`this` within Component LC hooks looses reference when 'target: es6' is used
See for detail #188
also possible related issue https://github.com/Microsoft/TypeScript/issues/14591
I have this issue, too.
TypeScript 3.2.4 with target: es6 / es2015 AngularJS 1.7.6 ng-metadata 4.0.1 ng-annotate-patched 1.9.0 etc. pp.
I am 50% sure that I had it working today, once. Using ngOnInit = () => { ... }
. But then I changed lot's of other stuff and now it won't work anymore... 😢
But maybe I was never working 😆 I'm not sure.