We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4ffba8 + 52ab489 commit e12d30eCopy full SHA for e12d30e
ch06/comp-comm/src/app/check-list/check-list.component.ts
@@ -24,7 +24,7 @@ export class CheckListComponent implements OnInit {
24
25
onChecked(isChecked, checkedItem: CheckItem) {
26
checkedItem.isChecked = isChecked
27
- this.curCheckedItem = checkedItem;
+ this.curCheckedItem = JSON.parse(JSON.stringify(checkedItem));
28
this.checkListDataService.checkItem(checkedItem);
29
}
30
0 commit comments