I want to use this npm-module in my Ionic 3 Progressive Web App: https://www.npmjs.com/package/ngx-disqus
I have imported it to the page.module.ts like this:
import { DisqusModule } from 'ngx-disqus';
@NgModule({
declarations: [
SzenarioerstellungPage,
],
imports: [
IonicPageModule.forChild(SzenarioerstellungPage),
DisqusModule.forRoot('my_shortname'),
],
exports: [
SzenarioerstellungPage
]
})
export class SzenarioerstellungPageModule {}
This is how I use it in mypage.html file:
<disqus [identifier] = "pageId" ></disqus>
And this is how I set the pageId
:
ionViewDidLoad() {
this.szenarioProvider.getUserID().then( UID => {
this.pageId = UID;
});
}
As you can see, I want to use the unique ID of the user (which he got from firebase authentification) to display a unique discus-thread on his page.
The problem is now that no matter what user gets to this page, discus only shows one and the same thread, instead of individual threads for each user.
Note: no matter what user enters the mentioned page, it always has the same URL (ionic does it like this.): http://localhost:8100/#/szenarioerstellung But I thought, that the unique [indentifier] would solve this problem.
Do you know, what I did wrong or what I need to add/ have in mind?