[Vuejs]-Using Vue in Laravel Spark โ€“ "method not defined on the instance" using vue2-touch-events โ€“ what could I do differently?

0๐Ÿ‘

My Best guess is that you may want to try and add a template to your /resources/js/components/swipehandler.vue component:

<template>
    <div>Yay</div>
</template>

<script>
export default {
    methods: {
        swipeHandler () {
            alert("yay!");
            console.log("yay!");
        }
    }
}
</script>

Iโ€™m not too familiar with how vue2-touch-events works, so I would need to understand that a bit more to give you a better answer.

Best of luck.

Leave a comment