Created
February 12, 2018 01:06
-
-
Save coderdiaz/833645e25e3b843a8cec701df6e54a68 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 class="hijo-component"> | |
<h1>Hijo</h1> | |
<button @click.prevent="emitirEventoHijo"></button> | |
</span> | |
</template> | |
<script> | |
export default { | |
name: 'Hijo', | |
methods: { | |
emitirEventoHijo () { | |
this.$emit('hijo:change') | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment