From 33fa22159501c1f8f2233cba10957a9ea7820937 Mon Sep 17 00:00:00 2001 From: time1043 <132178516+time1043@users.noreply.github.com> Date: Mon, 29 Sep 2025 23:36:00 +0800 Subject: [PATCH 1/3] Update part1/section6/final (@for) --- 2025/part1/section6/final/src/app/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2025/part1/section6/final/src/app/app.ts b/2025/part1/section6/final/src/app/app.ts index 9be9bcb..91d8b86 100644 --- a/2025/part1/section6/final/src/app/app.ts +++ b/2025/part1/section6/final/src/app/app.ts @@ -14,7 +14,7 @@ export class App { return [ ...currentTodoList, { - id: currentTodoList.length + 1, + id: Date.now(), value: this.inputText(), }, ]; From 0185c7c19463fb1e7e3b9e29910aa663ec10d7de Mon Sep 17 00:00:00 2001 From: time1043 <132178516+time1043@users.noreply.github.com> Date: Mon, 29 Sep 2025 23:39:07 +0800 Subject: [PATCH 2/3] Update part1/section7/final (@if) --- 2025/part1/section7/final/src/app/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2025/part1/section7/final/src/app/app.ts b/2025/part1/section7/final/src/app/app.ts index bd47683..e97ce1c 100644 --- a/2025/part1/section7/final/src/app/app.ts +++ b/2025/part1/section7/final/src/app/app.ts @@ -15,7 +15,7 @@ export class App { return [ ...currentTodoList, { - id: currentTodoList.length + 1, + id: Date.now(), value: this.inputText(), isComplete: false, }, From 666244343781e1639d80f66cf41aaedf8cd2959b Mon Sep 17 00:00:00 2001 From: time1043 <132178516+time1043@users.noreply.github.com> Date: Mon, 29 Sep 2025 23:40:06 +0800 Subject: [PATCH 3/3] Update part1/section7/starter (@if) --- 2025/part1/section7/starter/src/app/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2025/part1/section7/starter/src/app/app.ts b/2025/part1/section7/starter/src/app/app.ts index 9be9bcb..91d8b86 100644 --- a/2025/part1/section7/starter/src/app/app.ts +++ b/2025/part1/section7/starter/src/app/app.ts @@ -14,7 +14,7 @@ export class App { return [ ...currentTodoList, { - id: currentTodoList.length + 1, + id: Date.now(), value: this.inputText(), }, ];