I've been working on a dynamic table in vue.js, using the code snippet below:
<template>
<tr class="left-align" v-for="(item,index) in itemList" :key="index.id">
<td>{{item.items}}</td>
</tr>
<tr class="left-align" v-for="(item,index) in itemList" :key="index.id">
<td>{{item.items}}(future)</td>
</tr>
<tr class="left-align" v-for="(item,index) in itemList" :key="index.id">
<td>GAP</td>
</tr>
</template>
However, the actual output doesn't match my expectations. The result looks like this:
https://i.sstatic.net/krUzg.png
I tried wrapping the table rows in one <tr>
tag, but encountered an error:
<tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</tr>
The error message displayed was:
Parsing error: x-invalid-end-tag