How can I copy an object and lose its reference in Angular?
With AngularJS, I can use angular.copy(object), but I\'m getting some error using that in An
angular.copy(object)
let newObj = JSON.parse(JSON.stringify(obj))
The JSON.stringify() method converts a JavaScript object or value to a JSON string
JSON.stringify()