Skip to content

Commit 8e96354

Browse files
committed
完了削除したときにstateを戻す
1 parent b985085 commit 8e96354

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/home/home.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export class HomeComponent implements OnInit {
6161
clearComplete() {
6262
if (window.confirm('完了したタスクをすべて削除してよろしいですか?')) {
6363
this.todoService.clearComplete();
64+
this.reset();
6465
}
6566
}
6667
}

0 commit comments

Comments
 (0)