angular service becomes undefined in subsequent calls

You have the correct this context in ngOnInit, but lose it in the subsequent calls.

It would be nice if you provided the code, though, it’s difficult to provide the correct solution without it. Regardless, this is the reason.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top