covidassist/src/views/Questionnaire.vue

24 lines
629 B
Vue
Raw Normal View History

2020-03-21 16:19:14 +01:00
<template>
<div class="questionmaire">
2020-03-21 18:57:15 +01:00
<Question
v-bind:type="$store.state.questions[$store.state.currentQuestion].type"
v-bind:question="$store.state.questions[$store.state.currentQuestion].question"
v-bind:answers="$store.state.questions[$store.state.currentQuestion].answers"></Question>
2020-03-21 16:19:14 +01:00
</div>
</template>
<script>
import Question from "@/components/Question";
export default {
name: "Questionnaire",
2020-03-21 20:20:55 +01:00
components: {Question},
mounted() {
this.$store.commit("init")
}
2020-03-21 16:19:14 +01:00
}
</script>
<style scoped>
</style>