[Vuejs]-This.$emit throws TypeError

0👍

Thanks, guys from comments, got me thinking in another way

I am just started learning Vue, and so the problem is pretty stupid

How I was calling the method from the parent component:

childComponent.methods.myMethod()

So I realized I was doing something wrong and after a couple of minutes of googling found the solution in the StackOverflow question

Leave a comment