I'm curious as to why the 'this' object is not showing up in the debugger in Firefox, but it does appear in Chrome's debugger. When I try to access 'this.myProperty', it shows as undefined.
This is the code from my TypeScript file:
export class MYClass {
refresData(): void {
this.myService.getFunction(1)
.then(result => {
this.myProperty = result; // This object appears as undefined
}
}
}
This is the code for the service:
async getFunction(id: number): Promise<MyObject> {
return of({...}).toPromise();
}
I am using Version 82.0.2 (64-bit) on Windows 10