```
export class DialogValidateComponent implements OnInit {...
...
sequence: Sequence;
...
constructor(
private fb: FormBuilder,
private sequenceService: SequenceService,
private dialogRef: MatDialogRef<DialogValidateComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) {
this.sequence = data.sequence;
}
...
...
...
submit(): void {...
this.sequence.status = Sequence.STATUS_VALIDATED;
this.sequence.major_index = splittedVersion[0];
this.sequence.minor_index = splittedVersion[1];
this.dialogRef.close();
});
```
const dialogRef = this.dialog.open(DialogValidateComponent, {
data: {
sequence: this.sequence
},
width: '350px'
});
dialogRef.afterClosed().subscribe(result => {
if (result) {}
});Without return anything in dialogRef.close my object has been updated in my main component.
Thx for advance.