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.
- [Vuejs]-How to bind click event after page is fully loaded
- [Vuejs]-Vuelidate not working as expected on blur
Source:stackexchange.com