Created
November 9, 2019 01:14
-
-
Save parzibyte/1c384057e7246bba4a13c1a5034a115a 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
mostrarDialogo(): void { | |
this.dialogo | |
.open(DialogoConfirmacionComponent, { | |
data: `¿Te gusta programar en TypeScript?` | |
}) | |
.afterClosed() | |
.subscribe((confirmado: Boolean) => { | |
if (confirmado) { | |
alert("¡A mí también!"); | |
} else { | |
alert("Deberías probarlo, a mí me gusta :)"); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment