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