Answers for "error TS2339: Property 'open' does not exist on type 'MatDialogModule'."

0

error TS2339: Property 'open' does not exist on type 'MatDialogModule'.

// dialog is of type MatDialog not MatDialogModule

//change 
constructor(public dialog: MatDialogModule)
// to 
constructor(public dialog: MatDialog)
Posted by: Guest on November-29-2020

Code answers related to "error TS2339: Property 'open' does not exist on type 'MatDialogModule'."

Code answers related to "TypeScript"

Browse Popular Code Answers by Language