Vuemastery Session 3
This commit is contained in:
parent
08df653fdc
commit
57bc3d5f3f
1 changed files with 1 additions and 14 deletions
15
test.js
15
test.js
|
@ -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({
|
var app = new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
data: {
|
data: {
|
||||||
product: 'Socks',
|
product: 'Socks',
|
||||||
image: 'https://dl.dropboxusercontent.com/s/9zccs3f0pimj0wj/vmSocks-green-onWhite.jpg?dl=0',
|
image: 'https://dl.dropboxusercontent.com/s/9zccs3f0pimj0wj/vmSocks-green-onWhite.jpg?dl=0',
|
||||||
inStock: true,
|
inventory: 100
|
||||||
details: ['80% cotton', '20% polyester', 'Gender-neutral'],
|
|
||||||
variants: [
|
|
||||||
{
|
|
||||||
variantId: 2234,
|
|
||||||
variantColor: 'green'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
variantId: 2235,
|
|
||||||
variantColor: 'blue'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue