📜  角度 MatDialogRef 规范 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:13.906000             🧑  作者: Mango

代码示例1
Import {MatdialogModule,MatDialogRef} from '@angular/material/dialog';

TestBed.configureTestingModule({
declarations: [componentName],
imports: [MatdialogModule],
providers: [{provide : MatDialogRef, useValue : {}}]
});