angular10

Angular Material Snackbar: Add Icon Without Creating Another Component

只愿长相守 提交于 2020-08-10 19:19:58
问题 Is there method to Add Material Icon (Checkbox) Without Creating Another component in snackbar. Maybe through PanelClass or API style parameter? We have 100s of different snackbars with simple text. Trying to refrain from creating 100 additional components if possible. Need material checkbox (or any mat icon) in the left-align side of message. How to add Icon inside the Angular material Snackbar in Angular 5 let snackBarMessage = `${this.products?.length} Successfully Added`; this.snackBar