Created
January 26, 2018 12:56
-
-
Save lmiller1990/dcfa47a574ca384ffcb0ff05fe1dd5cd 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> | |
<CreatePostLayout @submit="handleCreatePost"> | |
<CreateDescription | |
slot="description" | |
v-model="content" | |
/> | |
<SubmitButton | |
slot="submit" | |
:submitted="submitted" | |
/> | |
</CreatePostLayout> | |
</div> | |
</template> | |
<script> | |
import CreatePostLayout from './CreatePostLayout' | |
import CreateDescription from './CreateDescription' | |
import SubmitButton from '@/components/shared/SubmitButton' | |
export default { | |
name: 'CreateContainer', | |
components: { | |
CreatePostLayout, | |
CreateDescription, | |
SubmitButton | |
}, | |
data () { | |
return { | |
content: '', | |
submitted: false | |
} | |
}, | |
methods: { | |
handleCreatePost () { | |
console.log('submitted') | |
} | |
} | |
} | |
</script> | |
<style scoped> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment