📌  相关文章
📜  选择 Angular 中的所有复选框 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:22.809000             🧑  作者: Mango

代码示例1
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.