import { Component , OnInit , Inject , ViewEncapsulation } from '@angular/core' ; import { MAT_DIALOG_DATA , MatDialogRef } from '@angular/material/dialog' ; @ Component ( { selector : 'app-confirmation-dialog' , templateUrl : './confirmation-dialog.component.html' , styleUrls : [ './confirmation-dialog.component.scss' ] , encapsulation : ViewEncapsulation . None } ) export class ConfirmationDialogComponent implements OnInit { constructor ( @ Inject ( MAT_DIALOG_DATA ) public data , private dialogRef ) { dialogRef . disableClose = true ; } public ngOnInit ( ) { } }