Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vue.component('hola-mundo', {
data () {
return {
message: 'Hola Mundo'
}
},
template: `
<div>
<h2>Componente Hola Mundo en Vue 2</h2>
<p>{{ message }}</p>
</div>
`
});
app.component('hola-mundo', {
setup() {
const message = ref("Hola Mundo")
return { message }
},
template: `
<h2>Componente Hola Mundo en Vue 3</h2>
<p>{{ message }}</p>
`
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment