Vuemastery Session 3

This commit is contained in:
nglettig 2019-01-16 11:07:19 +01:00
parent 08df653fdc
commit 57bc3d5f3f

15
test.js
View file

@ -1,22 +1,9 @@
//Add an array of sizes to the data and use v-for to display them in a list.
var app = new Vue({
el: '#app',
data: {
product: 'Socks',
image: 'https://dl.dropboxusercontent.com/s/9zccs3f0pimj0wj/vmSocks-green-onWhite.jpg?dl=0',
inStock: true,
details: ['80% cotton', '20% polyester', 'Gender-neutral'],
variants: [
{
variantId: 2234,
variantColor: 'green'
},
{
variantId: 2235,
variantColor: 'blue'
}
]
inventory: 100
}
})