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.