html
<div v-repeat=dudes>{{a}}, {{b}}</div>
js
dudes = [{a:1}, {a:2}, {a:3}]
new Vue({
el: 'body',
data: {dudes: dudes}
})
dudes[0].b = 'test'
Trying to set dudes[0].b = 'test'
doesn't work.
http://jsbin.com/dogadutiqa/1/edit
Unless I define dudes with a b
property to begin with dudes = [{a:1, b:null}, {a:2}, {a:3}]
How do I add new properties?