Please help me in order to copy the object into another object using angular 2?
In angular, I used angular.copy() to copy objects to the loose reference of the old object
Object.assign will only work in single level of object reference.
To do a copy in any depth use as below:
let x = {'a':'a','b':{'c':'c'}}; let y = JSON.parse(JSON.stringify(x));
If want to use any library instead then go with the loadash.js library.
loadash.js