Abrir dialog angular materia
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
.
.
.
constructor(
public dialogo: MatDialogRef<TuDialogoComponent>,
@Inject(MAT_DIALOG_DATA) public data: string
) { }
Abrir dialog angular materia
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
.
.
.
constructor(
public dialogo: MatDialogRef<TuDialogoComponent>,
@Inject(MAT_DIALOG_DATA) public data: string
) { }
Abrir dialog angular materia
openDialog() {
const dialogRef = this.dialog.open(DialogContentEditEducation, {data:
idEnviado});
dialogRef.afterClosed().subscribe(data => {//data llegando de respuesta
al cerrar el modal});
}
Abrir dialog angular materia
openDialog() {
const dialogRef = this.dialog.open(DialogContentEditEducation, {data:
idEnviado});
}
Abrir dialog angular materia
close(): void {
this.dialogo.close(/data que quieres emitir al cerrar el modal/);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us