i can't understand what the ... want this vue! please help if you can! this is my code
var groupadding = new Vue({
el: '#groupAdd',
data:{
currentFullData: [],
localData: []
},
methods: {
getDepartment() {
var sendData = id; // this is example
this.$http.post('some api ', sendData, {emulateJSON: true})
.then( resp => {
this.currentFullData = resp.data;
}
},
getLocalDepartment() {
this.localData = this.currentFullData;
}
}
})
in currentFullData for example i have 4 boolean field, 'create' , 'read', 'update', 'delete'
this 4 fields gets localData too, but when i change in localData some of them, they changes in currentFullData too!!!!!!!!!!!!!!!
soooooo anyone can explain me wtf is this?!?!?!