Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
Add Comment
Please, Sign In to add comment