How do you guys implement a substitue variable for this inside a class in TypeScript?
This technique is useful to save and recall your (parent/child) class or function when entering another code segment whereas this is replaced by the current context.
As in JS:
class Foo {
var $this = this;
}
Meanwhile in TS, the keyword var is not allowed inside a class.