Skip to content

Commit e12d30e

Browse files
authored
Merge pull request #17 from not-for-me/patch-ch06-cd
6장 comp-comm 예제 변화감지 버그 수정
2 parents a4ffba8 + 52ab489 commit e12d30e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch06/comp-comm/src/app/check-list/check-list.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class CheckListComponent implements OnInit {
2424

2525
onChecked(isChecked, checkedItem: CheckItem) {
2626
checkedItem.isChecked = isChecked
27-
this.curCheckedItem = checkedItem;
27+
this.curCheckedItem = JSON.parse(JSON.stringify(checkedItem));
2828
this.checkListDataService.checkItem(checkedItem);
2929
}
3030

0 commit comments

Comments
 (0)