I have checkbox column in mat-table to select all or some items. I am getting the selected ids but struggling to put the selected userIDs in an array of object. How can I add the selected items in an array named userIDs?
The Ts file:
userIDs: any[];
sendRegretMail() {
this.selection.selected.forEach(s => console.log(s.id));
}
