I want to create an onboarding form with visual progress for clients using VueJs.
It's a multistep form that will use state management to "remember" the users page position.
What option would you go for and why?
Option 1: Using a multistep modal where on going to the next step means showing a different html section of the same page.
<!-- The Modal -->
<section>
<h3>Welcome!</h3>
<p>You are about to experience data collection bliss.</p>
<button @click="goToStep(2)">Next</button>
</section>
<section>
<h3>Step 2: Yay!</h3>
<button @click="goToStep(3)">Next</button>
</section>
Option 2: Using different vue components and having the "next step" button lead to a different vue component using vue-router.
+Components
--- stepOne.vue
--- stepTwo.vue
Thanks in advance!