How to realize form single selection and multiple selection deletion by Angular6

background api is deleted through id, but it is stuck here. I don"t know how to judge whether it is selected or not.
clipboard.png

clipboard.png


check a field of control binding data such as selected , and control binding such as [(ngModel)] = "xxx.selected"

filter the selected id array before deleting

xxxList.filter((item) => item.selected == true).map((item) => item.id)
Menu