Angular ionic v3中的ngx disks模块仅显示一个线程

Angular ionic v3中的ngx disks模块仅显示一个线程,angular,ionic-framework,disqus,Angular,Ionic Framework,Disqus,我想在我的Ionic 3 Progressive Web应用程序中使用此npm模块: 我已将其导入page.module.ts,如下所示: 从'ngx discus'导入{discusmodule}; @NGD模块({ 声明:[ Szenariorstellungpage, ], 进口:[ IonicPageModule.forChild(SzenariorTellungPage), discusmodule.forRoot('my_shortname'), ], 出口:[ Szenarior

我想在我的Ionic 3 Progressive Web应用程序中使用此npm模块:

我已将其导入page.module.ts,如下所示:

从'ngx discus'导入{discusmodule};
@NGD模块({
声明:[
Szenariorstellungpage,
],
进口:[
IonicPageModule.forChild(SzenariorTellungPage),
discusmodule.forRoot('my_shortname'),
],
出口:[
SzenariorTellungPage
]
})

导出类SzenarioerstellungPageModule{}
discus在路由器中使用
时不工作

例如,URL
http://localhost:8100/#/szenarioerstellung
读作
http://localhost:8100/
,因此无论URL如何更改,它在用户端的外观仍然相同

有两种解决方案:

1-找到一种方法来配置路由器以使用hashbang
#而不是
#

2-从路由器禁用
HashLocationStrategy
,使其成为标准URL
http://localhost:8100/szenarioerstellung


阅读

可能重复的部分中的要求,我认为我的问题是另一个问题。我不想在我的页面上有多个disqs线程。我希望disks加载属于进入页面的用户的唯一ID的线程。或者你的意思是,我不能用一个线程来解决我的问题,这个线程根据一个唯一的ID来改变它的内容?简短回答:ngx Discus是非常无用的构建你自己的Discus组件,并在需要时调用
Discus.reset()
方法:我会试试。谢谢。@n00dl3它不是无用的,你只是不知道,
discus.reset()
不会修复itI使用的
从'@angular/router'导入{Routes,RouterModule}
以避免URL中的#。然而,迪克斯只展示了一条线索。所以我认为#不可能是唯一的问题。你有什么建议吗?