Created
February 28, 2019 21:30
-
-
Save dbilovd/6b23c4ce461cc062ceb9f8f3929e5bfe to your computer and use it in GitHub Desktop.
This file contains hidden or 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>Welcome</h1> | |
<ExampleButton :text="buttonText" /> | |
<div> | |
</template> | |
<script> | |
export default { | |
data () { | |
return { | |
buttonText: "Say Hello" | |
} | |
} | |
} | |
</script> |
This file contains hidden or 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>Welcome</h1> | |
<ExampleButton name="example-button" :text="buttonText" /> | |
<div> | |
</template> | |
<script> | |
import ExampleButton from './ExampleButton'; | |
export default { | |
components: { | |
ExampleButton | |
}, | |
data () { | |
return { | |
buttonText: "Say Hello" | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment