I am using mat-dialog of angular material. Here is my code:
if(abc_name === name){
const dialogRef = this.dialog.open(ViewAbcComponent, {
panelClass: 'full-screen-dialog-container',
data: {abc_name: this.abcDetails.item1[keyValue]}
});
dialogRef.afterClosed().subscribe((result) => {
if(result){}
console.log("ViewAbcComponent dialog closed", result);
});
}
In data:
object I want tp pass dynamic abc_name
value. Any idea how to achieve that?