Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ng2-awesome-disqus

MurhafSousli7MITdeprecated1.1.1TypeScript support: included

This package is deprecated, use ngx-disqus instead.

Angular Disqus Module

disqus, angular2, angular, comments

readme

npm Build Status npm

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

License

license

changelog

Changelog

1.1.0

  • (fix) Passing identifiers, closes #3
  • (feat) @Output() comment callback (output)
  • [removeOnDestroy] input is deprecated, it will remove disqus script on destroy by default.

1.0.4

  • Improve component code
  • Add URL validator
  • Add tests for window service

1.0.3

  • AOT support
  • Adds window service

1.0.2

  • initial release