I'm making a table in Vue.js and rendering some of the columns with the v-for directive:
<td v-for="(item, index) in items"> {{ item.name }} </td>
There is an unknown element count and I have to add a class to the last rendered element. I cannot use :last-child or :last-of-type because it is not the last <td> element in a row, it is just the last rendered element with v-for but there are also following <td> elements.
How could we achieve this in Vue.js?