Angular 如何增加ngxtoastr的显示时间
我想增加ngx toastr的显示时间。 我在API的成功消息中使用toastr.successAngular 如何增加ngxtoastr的显示时间,angular,typescript,angular-material,Angular,Typescript,Angular Material,我想增加ngx toastr的显示时间。 我在API的成功消息中使用toastr.success this.toastr.success(this.successMessage); 该函数的第3个参数可以更改为timeOut作为覆盖JSON值 以毫秒为单位 this.toastr.success(this.successMessage, null, {timeOut: 5000}); 看来这是一个大致的过程 success(message?: string, title?: string
this.toastr.success(this.successMessage);
该函数的第3个参数可以更改为timeOut作为覆盖JSON值 以毫秒为单位
this.toastr.success(this.successMessage, null, {timeOut: 5000});
看来这是一个大致的过程
success(message?: string, title?: string, override: Partial<IndividualConfig> = {})
this.toastr.success(this.successMessage, null, { timeOut: 10000 }); // 10 seconds