How to put the action button when using the "snackBar.openFromComponent()" method in MatSnackBar?

Viewed 12215

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

2 Answers

You can add the action button directly to snack-bar-component-example-snack.html in the stackblitz link that you have attached.

Related