Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 9, 2019 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/1c384057e7246bba4a13c1a5034a115a to your computer and use it in GitHub Desktop.
Save parzibyte/1c384057e7246bba4a13c1a5034a115a to your computer and use it in GitHub Desktop.
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