Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<template>
<b-card :title="poll.title" :sub-title="poll.description">
<b-form-group>
<b-form-radio-group
:id="`poll-options-${poll.id}`"
stacked
>
<b-form-radio
v-for="option in poll.options"
:key="`option-${option.id}`"
:value="option.id"
>
{{option.name}} - {{option.votes}}
</b-form-radio>
</b-form-radio-group>
</b-form-group>
</b-card>
</template>
<script>
export default {
props: {
poll: {
type: Object,
required: true,
},
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.