我正在开发角度7应用程序。我在路由时使用NgxUiLoaderRouterModule获取微调器,它工作正常。但是,在从http请求加载数据之前,微调器会消失。我尝试通过在module.ts中添加NgxUiLoaderHttpModule来解决。
在我的要求完成之前,仍然没有出现旋转器。
NgxUiLoaderHttpModule无法正常工作的原因是我们使用的是从'@ angular / http'导入的http,这是从ang 5版本中弃用的。在将http更新为httpClient时(来自'@ angular / common / http),Spinner为我工作。