I have created a table with selection and pagination in angular 2 using angular material.
I have taken a button with the name Remove Selected Rows to de
Here you go buddy.
You forgot to reassign the paginator to the datasource after deletion. Angular may do some magic, but sometimes it needs a little bit of help.
I use a timeout because I always face an issue, feel free to try without it.
setTimeout(() => {
this.dataSource.paginator = this.paginator;
});