My issue is related to the use of 'this' (a MapView) inside of method on() of esri/views/View
I used this.view.on inside a private method of my widget named onViewChange(). I attached all the TypeScript code.
It looks like this:
I have access to 'this' inside the private onViewChange method but outside this.view.on.
I can't use 'this' inside of this.view.on because it is undefined.
How can I use and change properties of 'this' (MapView) inside Mapview.on, inside a private method, inside a new widget class that extends Accessor?
I tryed to do the same inside this.view.watch, but I have the same problem.