1new Vue({
2 el: '#app',
3 data:{
4 myArr : [
5 {
6 name: 'object-1',
7 nestedArr: ['apple', 'banana']
8 },
9 {
10 name: 'object-2',
11 nestedArr: ['grapes', 'orange']
12 }
13 ]
14 },
15 methods:{
16 changeArrayItem: function(){
17 this.$set(this.myArr[1].nestedArr, 1, 'strawberry');
18 }
19 }
20})
21