Skip to content

Instantly share code, notes, and snippets.

@LazyFatArrow
Created May 27, 2019 23:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save LazyFatArrow/330c86d8b11d452c76d6585d788614a7 to your computer and use it in GitHub Desktop.
<template>
<b-container v-if="polls && polls.length" class="my-5">
<b-row>
<b-col>
<b-btn>Create Poll</b-btn>
</b-col>
</b-row>
<b-row class="mt-3">
<b-col>
<b-card-group columns>
<SinglePoll
v-for="poll in polls"
:key="`poll-${poll.id}`"
:poll="poll"
/>
</b-card-group>
</b-col>
</b-row>
</b-container>
</template>
<script>
import { POLLS } from '@/gql/queries/poll.queries'
import SinglePoll from '@/components/SinglePoll.vue'
export default {
components: {
SinglePoll,
},
apollo: {
polls: {
query: POLLS,
}
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment