[Vuejs]-How can I display an array list with Vuejs

0👍

Try this instead:

     {
       rut:"06152617-K",
       full_name:"",
       total_days:30
     }

If you want to access this values you can do as you did before: post.rut

And if you wish to continue having array in object try this instead in html:

    <tbody>
       <tr v-for="post in posts">
         <td v-for="(r,index) in post.rut">
           {{ r[index] }}
         </td>
       </tr>
    </tbody>

Above code will loop over array of rut and create tds of array length

Leave a comment