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
let copy = Object.assign({}, myObject). as mentioned above
but this wont work for nested objects. SO an alternative would be
let copy =JSON.parse(JSON.stringify(myObject))