I am new to ES6 syntax, my original code has more implementation, but I have simplified. I am getting an error saying cannot read property 'Method2' of undefined. What am I doing wrong here ? Do I have to do any bind calls.
class Class1 {
constructor() {
eventbus.subscribe(this.Method1);
}
Method1() {
this.Method2();
}
Method2(){
}
}