Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created Feb 4, 2019
Embed
What would you like to do?
<template>
<div @click="hola">Pulsa aquí</div>
</template>
<script>
import MyMixin from './mixin';
export default {
name: 'HolaMundo',
mixins: [MyMixin]
}
</script>
export default {
data () {
return {
}
},
methods: {
hola () {
alert ('hola')
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment