我是angular的新手,我正在使用Angular Material Design for UI。this.snackBar.open('You are already registered.Please log in.','', { duration: 2000 });我想设置的图标,因为在图像,但我有下面的小吃栏没有图标.I不知道如何添加这个。
所以在我的任务插件中,用户可以让任务器让我的插件运行。当我的插件运行时,它会创建一个透明的活动,显示一个snackbar,然后在完成时终止。唯一的问题是,当活动显示时,用户无法与当前正在查看的屏幕进行交互。我知道应用链接泡沫允许通过,同时显示一个小吃栏,所以这是可能的。所有的帮助都是非常感谢的。() { public
我已经创建了一个使用Mat-snackbar发出警报的服务,我使用解构来接收函数中的变量,我要求其中一个变量是特定类型的 export class NotificationsService {// MatSnackBarVerticalPosition = 'top' | 'bottom'; this is the required type
constructor(private snackBa