📜  错误 TS2339:“MatDialogModule”类型上不存在属性“open”. - 打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:12.878000             🧑  作者: Mango

代码示例1
// dialog is of type MatDialog not MatDialogModule

//change 
constructor(public dialog: MatDialogModule)
// to 
constructor(public dialog: MatDialog)