Hello, i would like change my old arr with new, but I have error: dataSource.fetch is not a function.
Here is plnkr
data: {
localdatasource: [{
id: 0,
orderId: 0,
parentId: null,
title: "Main Project",
summary: true,
expanded: true,
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 15:00")
}]
}
methods: {
go: function(){
//How can i do sth like that
this.localdatasource = [{
id: 0,
orderId: 0,
parentId: null,
title: "New",
summary: true,
expanded: true,
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 15:00")
}]
this.localdatasource[0].title = "Nowy";
}
}