Angular Disqus Module
Add disqus to your app instantly | live demo
Installation
Install it with npm
npm install ng2-awesome-disqus --save
Basic usage:
Add DisqusModule
in your root module
import {DisqusModule} from "ng2-awesome-disqus";
@NgModule({
imports: [
DisqusModule
]
})
Add disqus component
<disqus [shortname]="shortname" [identifier]="pageId" ></disqus>
Advanced usage:
See Disqus official documentation (JavaScript configuration variables) before using these inputs.
<disqus [shortname]="shortname" [identifier]="pageId"
[url]="customUrl" [categoryId]="catId" [lang]="'en'"
(comment)="onComment($event)"
></disqus>
Use the output (comment)
to get the responses for the new comments posted by users.
Issues
If you identify any errors in this component, or have an idea for an improvement, please open an issue. I am excited to see what the community thinks of this project, and I would love your input!
Author
Murhaf Sousli