I have implemented a simple table in angular 2 using angular material ..Implemented two methods , first is transferSelectedRows which on selecting rows from
You can modify your removeSelectedRows() to filter the selected items in the table:
removeSelectedRows()
removeSelectedRows() { this.selection.selected.forEach(item => { this.selectedRows = this.selectedRows.filter(element => element !== item); }); }