import { Component , Inject } from '@angular/core' ; import { MAT_DIALOG_DATA , MatDialogRef } from "@angular/material/dialog" ; export interface ConfirmDialogData { description : string ; } @ Component ( { selector : 'app-confirm-dialog' , templateUrl : './confirm-dialog.component.html' , styleUrls : [ './confirm-dialog.component.css' ] } ) export class ConfirmDialogComponent { constructor ( public dialogRef , @ Inject ( MAT_DIALOG_DATA ) public data ) { } onNoClick ( ) { this . dialogRef . close ( ) ; } }