【问题标题】:Is it possible to use NgxUiLoaderHttpModule & NgxUiLoaderRouterModule simultaneously in module. ts?是否可以在模块中同时使用 NgxUiLoaderHttpModule 和 NgxUiLoaderRouterModule。 ts?
【发布时间】:2019-03-27 20:06:05
【问题描述】:

我正在开发 Angular 7 应用程序。我正在使用 NgxUiLoaderRouterModule 在路由时获取微调器,它工作正常。但是微调器在从 http 请求加载数据之前消失了。我试图通过在 module.ts 中添加 NgxUiLoaderHttpModule 来解决。

在我的请求完成之前,微调器仍然没有出现。

【问题讨论】:

  • 你试过使用解析器吗?

标签: angular spinner ngx-ui-loader


【解决方案1】:

NgxUiLoaderHttpModule 不工作的原因是我们使用了从 '@angular/http' 导入的 http,它已从 ang 5 版本中弃用。在将 http 更新为 httpClient(来自 '@angular/common/http)时 Spinner 为我工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-19
    • 2022-06-19
    • 1970-01-01
    • 1970-01-01
    • 2021-10-24
    • 2014-09-27
    相关资源
    最近更新 更多