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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)