[Vuejs]-Vue Typeerror Method is not a funcion?

0👍

It is an object, submitForm:, which contains an anonymous function () => {...}, but still, it is an object.

Go for submitForm() { ... } as the shorthand. That expands into submitForm: function () {} whereas what you have remains an anon function inside an object, thus giving you the error.

Leave a comment