I'm trying to copy the name from one object to another as below:
console.log(this.source.name)
//gives "mike"
mounted: function() {
this.client.name = Object.assign({}, this.source.name)
}
then
console.log(this.client.name)
//gives object with 1: m, 2: i, 3: k, 4:e
What I'm doing wrong? How should I correct my code?