main.view--onboarding
article(
style='display: flex; flex-direction: column; align-items: center'
v-if='survey'
)
.step(v-for='(step, i) in survey.steps')
component(
:aspect-questions='step.component == "Aspects" ? survey.aspectQuestions : null'
:is='step.component'
:question='step'
@handle-submit='onSubmit'
@update-answers='updateAnswers'
v-if='step.component'
)
p(v-else) {{ step }}
p step: {{ i + 1 }} of {{ survey.steps.length }}
//- component(
//- :aspect-questions='step.component == "Aspects" ? survey.aspectQuestions : null'
//- :is='step.component'
//- :question='step'
//- @handle-submit='onSubmit'
//- @update-answers='updateAnswers'
//- v-if='step && currentStep == i'
//- )
//- p(v-if='currentStep == i') step: {{ i+1 }} of {{ survey.steps.length }}