I using MatSnackBar for notifications and I would like to have an action button in the snack-bar. How do I insert one when I am using "snackBar.openFromComponent()" method?
Here is my code
I using MatSnackBar for notifications and I would like to have an action button in the snack-bar. How do I insert one when I am using "snackBar.openFromComponent()" method?
Here is my code
Thanks to this answer I was able to solve my problem.
Here is a working demo with the added action button.
You can add the action button directly to snack-bar-component-example-snack.html in the stackblitz link that you have attached.