-
-
Save uno-de-piera/5066d448e7d95cf4f2944521cdc405f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div @click="hola">Pulsa aquí</div> | |
</template> | |
<script> | |
import MyMixin from './mixin'; | |
export default { | |
name: 'HolaMundo', | |
mixins: [MyMixin] | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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