I have a component and want to add a click listener that runs a method in the parent template in Vue. Is this possible?
<template>
<custom-element @click="someMethod"></custom-element>
</template>
<script>
export default {
name: 'template',
methods: {
someMethod: function() {
console.log(true);
}
}
</script>