-
-
Save cursosdesarrolloweb/2252f326f477b31f9a32d529881b1a5d 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
Vue.component('hola-mundo', { | |
data () { | |
return { | |
message: 'Hola Mundo' | |
} | |
}, | |
template: ` | |
<div> | |
<h2>Componente Hola Mundo en Vue 2</h2> | |
<p>{{ message }}</p> | |
</div> | |
` | |
}); |
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
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