【问题标题】:Error function of ngx toastr is not showing error messagengx toastr 的错误函数没有显示错误信息
【发布时间】:2018-09-09 18:05:18
【问题描述】:

当我调用 toastr.error 并传递消息时,尽管出现了 toastr,但它没有显示消息。 但是对于 toastr.success 它工作正常。 请帮助我如何解决它。 上传了相同的截图。

【问题讨论】:

  • 如果您不显示代码,您认为任何人都知道如何修复代码?

标签: angular toastr


【解决方案1】:

我忘记在 app.module.ts

上导入
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-25
    • 2013-08-20
    • 2019-02-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多