Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Hotell opened this issue Dec 27, 2016 · 2 comments
Open
Labels

Comments

@Hotell
Copy link
Member

Hotell commented Dec 27, 2016

See for detail #188

@Hotell Hotell added the bug label Dec 27, 2016
@Hotell
Copy link
Member Author

Hotell commented Mar 11, 2017

also possible related issue microsoft/TypeScript#14591

@benneq
Copy link

benneq commented Jan 25, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants