📅  最后修改于: 2022-03-11 15:03:22.809000             🧑  作者: Mango
Prepared a small demo to show how this can be done using ngModel directive. Link: https://stackblitz.com/edit/angular-lxjrdh
It uses Array.every to check if all are checked or not. If checked, it resets all otherwise checks all.