[Vuejs]-Render Input fields based on if field value of the field above/before Vue JS v-for/v-if

0๐Ÿ‘

v-for and v-if is not gonna work in same tag , so use a span wrapper around form-input to use the v-for loop and if condition on the form-input tag

<span  v-for="serviceIndex in getServiceFieldCount">
     <form-input v-if="your condition"/>
</span>

Leave a comment