this.dialog.open(DialogComponent, { disableClose: true });
@Component({/* ... */}) export class YourDialog { constructor(public dialogRef: MatDialogRef<YourDialog>) { } closeDialog() { this.dialogRef.close('Pizza!'); } }