1//just add your component here
2 openDialog() {
3 const dialogRef = this.dialog.open(
4 mycomponent///just put your component here
5 );
6
7 dialogRef.afterClosed().subscribe(result => {
8 console.log(`Dialog result: ${result}`);
9 });
10 }
11
12the rest of the code are in https://material.angular.io/components/dialog/examples