arunselvakumar / AngularNotes

0 stars 0 forks source link

Prevent Objects from mutating in JavaScript #13

Open arunselvakumar opened 5 years ago

arunselvakumar commented 5 years ago

@Input() set item(value.Item) { if(value) { this.originalName = value.Name } this.selectedItem = Object.assign({}, value); }