// dialog is of type MatDialog not MatDialogModule //change constructor(public dialog: MatDialogModule) // to constructor(public dialog: MatDialog)