Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created July 23, 2020 08:20
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 cursosdesarrolloweb/afe720747766ac12ae43d352cc7acab2 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/afe720747766ac12ae43d352cc7acab2 to your computer and use it in GitHub Desktop.
<template>
<div>
<h1>{{ msg }}</h1>
<button @click="count++">count is: {{ count }}</button>
</div>
</template>
<script>
export default {
name: 'HelloWorld',
props: {
msg: String,
},
data() {
return {
count: 0,
}
}
}
</script>
<template>
<h1>{{ msg }}</h1>
<button @click="count++">count is: {{ count }}</button>
<p>Edit <code>components/HelloWorld.vue</code> to test hot module replacement.</p>
</template>
<script>
export default {
name: 'HelloWorld',
props: {
msg: String,
},
data() {
return {
count: 0,
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment