-
-
Save cursosdesarrolloweb/afe720747766ac12ae43d352cc7acab2 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
<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> |
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
<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