Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-awesome-disqus

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-awesome-disqus

Angular 2 Disqus component

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Angular 2 Disqus npm Build Status npm

Angular 2 Disqus comment system, coming soon on npm

Angular 2 Share Buttons cover

Installation

Install it with npm

npm install ng2-awesome-disqus --save

Basic usage:

<disqus [shortname]="disqusShortname" [identifier]="pageIdentifier" ></disqus>

Advanced usage:

It's highly recommended to read the official Disqus docs JavaScript configuration variables before setting these inputs.

<disqus [shortname]="disqusShortname" [identifier]="pageIdentifier" 
    [url]="customUrl" [categoryId]="catId"
    [lang]="'en'"
      
    [removeOnDestroy]="true"
  ></disqus>

ng2-awesome-disqus module uses ChangeDetectionStrategy.OnPush, so the inputs won't detect changes if bound to variables (why would you need change detection here anyway!).

The input [removeOnDestroy] explains it self, you should ONLY set it to true if your app has dynamic theme, this will load Disqus script every time the component initializes and it will let Disqus to decide the appropriate colors for you, just like in this Demo

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

FAQs

Package last updated on 04 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc