Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 11x 11x 11x 11x | import { Component, Inject } from '@angular/core'; import { MatButton } from '@angular/material/button'; import { MAT_DIALOG_DATA, MatDialogActions, MatDialogContent, MatDialogRef, MatDialogTitle } from '@angular/material/dialog'; @Component({ selector: 'app-confirm-dialog', imports: [MatDialogContent, MatDialogActions, MatDialogTitle, MatButton], templateUrl: './confirm-dialog.component.html', styleUrl: './confirm-dialog.component.scss' }) export class ConfirmDialogComponent { constructor(private dialogRef: MatDialogRef<ConfirmDialogComponent>, @Inject(MAT_DIALOG_DATA) public data: { message: string }) { } onConfirm(): void { this.dialogRef.close(true); } onCancel(): void { this.dialogRef.close(false); } } |