I get the error
evt = TypeError: provider.ngAfterViewInit is not a function at callProviderLifecycles
in my Angular project. The mysterious thing is that not only do I not have an ngAfterViewInit
method but I also don't have the corresponding implements
clause.
The even odder thing is that I undo my file back to a previous state and it starts working again.
It seems that something in the CLI caches which methods existed at some point in time.
I am using ng serve --source-map=false --aot --live-reload=false
Restarting ng serve
cleared out whatever was caching this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With