📜  在 Angular Material 对话框中使用您的自定义组件 - Javascript 代码示例

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

代码示例1
//just add your component here
   openDialog() {
      const dialogRef = this.dialog.open(
        mycomponent///just put your component here
      );

      dialogRef.afterClosed().subscribe(result => {
        console.log(`Dialog result: ${result}`);
      });
    }

the rest of the code are in https://material.angular.io/components/dialog/examples