Skip to content

Instantly share code, notes, and snippets.

@chrisvfritz
Created June 3, 2018 19:06
Show Gist options
  • Save chrisvfritz/e2b6a6110e0829d78fa4aedf7cf6b235 to your computer and use it in GitHub Desktop.
Save chrisvfritz/e2b6a6110e0829d78fa4aedf7cf6b235 to your computer and use it in GitHub Desktop.
<template>
<p>{{ greeting }} World!</p>
</template>
<script>
module.exports = {
data: function () {
return {
greeting: 'Hello'
}
}
}
</script>
<style scoped>
p {
font-size: 2em;
text-align: center;
}
</style>
@phillt
Copy link

phillt commented Dec 8, 2018

Where is the component tag name defined? is it taken from the file name, so to use the above I would write <hello></hello>?

I'm going to take a wild guess and say its whatever you export it as. So if its exported as default then it's whatever you name it on the import.

@yaogengzhu
Copy link

goods

@qukezhi
Copy link

qukezhi commented Mar 28, 2019

Hello vue!

@qqlcx5
Copy link

qqlcx5 commented Jul 4, 2019

这。。。。
good star

@teelomo
Copy link

teelomo commented Oct 25, 2019

six six six

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment