ng2-awesome-disqus
Version:
Angular Disqus Module
62 lines (40 loc) • 2.12 kB
Markdown
[](https://github.com/MurhafSousli/ng2-disqus) [](https://travis-ci.org/MurhafSousli/ng2-disqus) [](https://www.npmjs.com/package/ng2-awesome-disqus)
<p align="center">
<img height="300px" width="300px" style="text-align: center;" src="https://cdn.rawgit.com/MurhafSousli/ng2-disqus/master/assets/logo.svg">
<h1 align="center">Angular Disqus Module</h1>
</p>
Add disqus to your app instantly | [live demo](https://murhafsousli.github.io/ng2-disqus/)
## 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](https://help.disqus.com/customer/portal/articles/472098-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](https://github.com/MurhafSousli/ng2-awesome-disqus/issues). I am excited to see what the community thinks of this project, and I would love your input!
## Author
**Murhaf Sousli**
- [github/murhafsousli](https://github.com/MurhafSousli)
- [twitter/murhafsousli](https://twitter.com/MurhafSousli)
## License
[](/LICENSE)