Elements in iteration expect to have 'v-bind:key' directives in VueApp

Viewed 9411
1 Answers

When using v-for, vue expects a unique key for each iteration. You can achieve this by binding an index key to your div element

 <div v-for="(product, index) in products" :key="index">
   // code to execute
 </div>

:key is shorthand for v-bind:key

Related