[Solved] why can i not call a function of my vue component in my callback [closed]

[ad_1]

Your issue is lexical scoping. the callback method you’re provided is an anonymous function which redeclares the value of this. To solve it, use a fat arrow.

$("#tbl tbody").on("click", "tr", () => {
  this.ddd();
});

1

[ad_2]

solved why can i not call a function of my vue component in my callback [closed]