Created
November 9, 2019 00:19
-
-
Save parzibyte/59ca12a716f015b6dff1755c55f04893 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit, Inject } from '@angular/core'; | |
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; | |
@Component({ | |
selector: 'app-dialogo-confirmacion', | |
templateUrl: './dialogo-confirmacion.component.html', | |
styleUrls: ['./dialogo-confirmacion.component.css'] | |
}) | |
export class DialogoConfirmacionComponent implements OnInit { | |
constructor( | |
public dialogo: MatDialogRef<DialogoConfirmacionComponent>, | |
@Inject(MAT_DIALOG_DATA) public mensaje: string) { } | |
cerrarDialogo(): void { | |
this.dialogo.close(false); | |
} | |
confirmado(): void { | |
this.dialogo.close(true); | |
} | |
ngOnInit() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment