Created
June 24, 2017 00:51
-
-
Save jobcerto/cb0736bbc1f39f5332f70a7b01d19f2c 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 style="margin-top:100px; margin-left:30px;"> | |
<h1>COMPONENTE: 01 Emitindo eventos...</h1> | |
</div> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
foo: 'foo event' | |
} | |
}, | |
created() { | |
window.events.$emit('evento', this.foo); | |
} | |
}; | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment