I am finding it challenging to assign a value to a public variable within another function. I seem to be stuck.
export class MyClass{
myVar = false;
myFunction(){
Module.anotherFunction(){
this.myVar = true;
}
}
}
Is there a way for me to update myVar to true from inside another function by calling this.myFunction()
?