Home

Awesome

ng2-disqus

npm version npm David npm

Angular 2 component for Disqus

Installation

npm

$ npm i ng2-disqus --save

Usage

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>