Angular Material Dialog: How to update the injected data when they change in the parent component?

You can just change data of the component instance, like this:

this.dialogRef.componentInstance.data = {numbers: value};

Example here:
https://stackblitz.com/edit/angular-dialog-update

Leave a Comment