ng-metadata icon indicating copy to clipboard operation
ng-metadata copied to clipboard

`this` within Component LC hooks looses reference when 'target: es6' is used

Open Hotell opened this issue 7 years ago • 2 comments

See for detail #188

Hotell avatar Dec 27 '16 08:12 Hotell

also possible related issue https://github.com/Microsoft/TypeScript/issues/14591

Hotell avatar Mar 11 '17 16:03 Hotell

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.

benneq avatar Jan 25 '19 17:01 benneq