E
E
Evgenii Borovoi2021-02-17 06:54:00
Vue.js
Evgenii Borovoi, 2021-02-17 06:54:00

Is it possible in vuejs to make two trs in a v-for loop?

Now

<tr
        v-for="(order, index) in list"
>
   <td>Something {{order.name}}</td>
</tr>


I need two trs in the loop, the second of which I will show by v-if .
If you wrap these tr's in a div, then vue swears at {{order.name}}.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-02-17
@EugeneOne77

Wrap in <template></template>. Example .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question