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
It's very simple after close of dialog to subscibe and call listing API
openDialog(requestId): void {
//this.abc=requestId;
const dialogRef = this.dialog.open(DialogOverviewExampleDialog, {
disableClose: true,
width: '400px',
data: { name: this.name, animal: this.animal, sendtochild: requestId }
});
dialogRef.afterClosed().subscribe(result => {
this.getUserList();
});
}