1

I have Angular 2 app in there I use ng2-awesome-disqus component.

On the page I have several items and for each item I have one discussion component :

<disqus [shortname]="shortname" [identifier]="identifier"></disqus>
  • shortname is same for each item

  • identifier is unique for each item

I would expect unique discussion for each item, but there are all the same.

Tomas Marik
  • 4,053
  • 3
  • 31
  • 62

2 Answers2

1

By default, disqus only allows a single widget per page. I think (actually, I'm sure), your module can only deal with one disqus widget. Take a look at the code of the service.

You have to fork this project and manage multiple widget by yourself or create your own component that will do that if possible.

This question might help.

Community
  • 1
  • 1
n00dl3
  • 21,213
  • 7
  • 66
  • 76
-2

For exam

<ng-container *ngFor="let item of items;let i=index">
   <disqus [shortname]="item.shortname" [identifier]="i"></disqus>
</ng-container>
grinat
  • 95
  • 4