Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mrahmedmosaad's avatar

v-for index not starting from 0 but less than class_student.id with 1

<tr v-for="(class_student ,index) in class_students" :key='class_student.id'>
                       <td>{{index}}</td>
                       <td>{{class_student.id}}</td>
                       <td>{{class_student}}</td>
                   </tr> 

Alt image

my question is I need the index to start from 0 as normal and why this happened

0 likes
0 replies

Please or to participate in this conversation.