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
Solution
Angular2 developed on the ground of modern technologies like TypeScript and ES6.
So you can just do let copy = Object.assign({}, myObject).
let copy = Object.assign({}, myObject)
Object assign - nice examples.
For nested objects : let copy = JSON.parse(JSON.stringify(myObject))
let copy = JSON.parse(JSON.stringify(myObject))