Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created January 26, 2018 12:56
Show Gist options
  • Save lmiller1990/dcfa47a574ca384ffcb0ff05fe1dd5cd to your computer and use it in GitHub Desktop.
Save lmiller1990/dcfa47a574ca384ffcb0ff05fe1dd5cd to your computer and use it in GitHub Desktop.
<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