Angular 2 component for Disqus
$ npm i ng2-disqus --save
import { Ng2DisqusModule } from 'ng2-disqus';
Include the component directive in the imports array:
@NgModule({
imports: [
// ...
Ng2DisqusModule
]
})
Add disqus
to your template with the shortname and page identifier:
<disqus [shortname]="'threesquared'" [identifier]="post.id"></disqus>