0👍
In this method
initialize(){
this.items = Users;
console.log("Cek Items : ", this.items);
},
you set items in data, but there is no property with name items:
return {
search: '',
complex: {
headers: [
{
text: 'Id',
value: 'id'
},
{
text: 'Email',
value: 'email'
},
{
text: 'Action',
value: ''
},
],
items: Users // this is inside 'complex'
}
};
},
Try this:
this.complex.items = Users;
Or, if you need add new property to data, use $set:
this.$set(this.$data, 'items', Users)
- [Vuejs]-How to disable available times looping through an array using watch?
- [Vuejs]-How to make specific option of select list show in the first row using vueJs?
Source:stackexchange.com