How to add Icon inside the Angular material Snackbar in Angular 5

后端 未结 5 2015
情书的邮戳
情书的邮戳 2021-02-15 01:34

I am new to angular and I am using Angular Material Design for UI.

In my application I have a snackbar .

Now I want to set an Icon inside the snackbar but I trie

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-15 02:10

    Try openFromComponent or openFromTemplate methods of the MatSnackBar Service instead of plain open.

提交回复
热议问题