Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active January 28, 2019 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/841ac96654db8d4b3962d8087c11dfe4 to your computer and use it in GitHub Desktop.
Save uno-de-piera/841ac96654db8d4b3962d8087c11dfe4 to your computer and use it in GitHub Desktop.
<template lang='pug'>
div.container
div Vuejs + Pug con {{ name }}
hello-world(msg="Hola Mundo", :author="name")
</template>
<script>
import HelloWorld from '../components/HelloWorld'
export default {
name: 'home',
components: {
HelloWorld
},
data () {
return {
name: 'Cursosdesarrolloweb'
}
}
}
</script>
<template lang='pug'>
.div.hello
h1 {{ msg }} - {{ author }}
</template>
<script>
export default {
name: 'HelloWorld',
props: {
msg: String,
author: String
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment