cschoeni
963
13
Vue

v-for data from Database

Posted 2 years ago by cschoeni

Hello Guys

I try my luck with Vue. My Problem is from the output.


sales:Array[4]
0:Object
contractId:"1273643453"
created_at:"2017-02-12 13:01:39"
id:1
productNew:"Vivo XL"
productOld:"Vivo M"
updated_at:"2017-02-12 13:01:39"
zip:"2543"
1:Object
2:Object
3:Object

This is the output Object in the Vue Root. But the problem is i can't output this with v-for.


<tbody>
    <tr v-for="sale in sales">
      <td v-text="sale.id"></td>
      <td v-text="sale.contractId"></td>
      <td v-text="sale.zip"></td>
    </tr>
</tbody>

  • It's in the app div.
  • I testet it with the {{ sale.id }} sytax
  • but my table is empty

Please sign in or create an account to participate in this conversation.