[Vuejs]-Why can i not call a function of my vue component in my callback

0👍

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();
});

Leave a comment