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 Disqus Module

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Angular 2 Disqus npm Build Status npm

Angular 2 Disqus comment system | live demo

Installation

Install it with npm

npm install ng2-awesome-disqus --save

Basic usage:

Add DisqusModule to NgModule imports array.

import {DisqusModule} from "ng2-awesome-disqus";
@NgModule({
  imports: [
    DisqusModule
  ]
})

In your template

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

Advanced usage:

See Disqus official documentation (JavaScript configuration variables) to use the other inputs.

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

by default the component will reset Disqus configurations after its view initializes again (but won't remove the script), to remove Disqus script completely on component destroy, set [removeOnDestroy]="true" (you won't need this option most often).

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

Keywords

FAQs

Package last updated on 09 Jan 2017

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