We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a04c46 commit a9bd047Copy full SHA for a9bd047
examples/shopping-cart/components/ProductList.vue
@@ -1,6 +1,8 @@
1
<template>
2
<ul>
3
- <li v-for="product in products">
+ <li
4
+ v-for="product in products"
5
+ :key="product.id">
6
{{ product.title }} - {{ product.price | currency }}
7
<br>
8
<button
examples/shopping-cart/components/ShoppingCart.vue
@@ -3,7 +3,9 @@
<h2>Your Cart</h2>
<p v-show="!products.length"><i>Please add some products to cart.</i></p>
9
{{ product.title }} - {{ product.price | currency }} x {{ product.quantity }}
10
</li>
11
</ul>
0 commit comments