-
Notifications
You must be signed in to change notification settings - Fork 553
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
cant make ngOnInit work #327
Comments
Uh, interesting, can I see code? Is that error from the linter or ts? |
so with OnInit
with OnInit commented
|
Super hard to read. Clean it up please, remove comments and stuff. |
I think I've found it, you have imported OnInit interface declaration and also implemented its method, but your class does not use that interface. To fix it, just update your Docs: https://www.typescriptlang.org/docs/handbook/interfaces.html |
ok so apparently it gets triggered, but the ts files are not debugable |
@phil123456 that's the normal behaviour of webpack. It's nothing to do with the angular-webpack stater kit. |
Hi,
I get something very strange with this seed
TS6133: 'OnInit' is declared but never used.
but I got ngOnInit() in my code (that used to be working)
if I comment OnInit then it compiles but my ngOnInit are never called
tried to dig this in google but cant find anything
any idea ? am I missing something ?
thanks
The text was updated successfully, but these errors were encountered: