I'm facing an issue where my code works perfectly in pure html/javascript, but not when using vuejs. The function causing the problem is called myMethod(). While debugging in the javascript console, I can access it using myMethod("toto"). However, in vuejs, I can only access it using $vm0.myMethod("toto").
It is crucial for me to have it accessible as myMethod("toto").
Is this even achievable in vue?
Thank you in advance.