All Projects → MurhafSousli → ngx-disqus

MurhafSousli / ngx-disqus

Licence: MIT license
Disqus for Angular 💬

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to ngx-disqus

Django Disqus
Integrates DISQUS into Django
Stars: ✭ 326 (+199.08%)
Mutual labels:  disqus
Rustycrate.ru
Русскоязычный сайт о языке программирования Rust
Stars: ✭ 72 (-33.94%)
Mutual labels:  disqus
Disqus Proxy
Hexo插件 解决国内不能访问 Disqus 的代理
Stars: ✭ 154 (+41.28%)
Mutual labels:  disqus
Isso
a Disqus alternative
Stars: ✭ 4,488 (+4017.43%)
Mutual labels:  disqus
Canvas
Base for Blogger, seo, twitter card, open graph, optimization and performance
Stars: ✭ 51 (-53.21%)
Mutual labels:  disqus
Gatsby Advanced Starter
A high performance skeleton starter for GatsbyJS that focuses on SEO/Social features/development environment.
Stars: ✭ 1,224 (+1022.94%)
Mutual labels:  disqus
Rsshub
🍰 Everything is RSSible
Stars: ✭ 18,111 (+16515.6%)
Mutual labels:  disqus
plugin-disqus
Disqus comments on your books
Stars: ✭ 49 (-55.05%)
Mutual labels:  disqus
Laravel Disqus
A simple Disqus platform integration with Laravel.
Stars: ✭ 71 (-34.86%)
Mutual labels:  disqus
Schnack
🗣️ Simple self-hosted node app for Disqus-like drop-in commenting on static websites
Stars: ✭ 1,729 (+1486.24%)
Mutual labels:  disqus
Mouthful
Mouthful is a self-hosted alternative to Disqus
Stars: ✭ 681 (+524.77%)
Mutual labels:  disqus
Duoshuo Disqus Theme
仿disqus的一款多说风格代码
Stars: ✭ 11 (-89.91%)
Mutual labels:  disqus
Comment.js
[Archived] A tiny comment system based on Github issue comments.
Stars: ✭ 111 (+1.83%)
Mutual labels:  disqus
Disqusjs
💬 Render Disqus comments in Mainland China using Disqus API
Stars: ✭ 455 (+317.43%)
Mutual labels:  disqus
Articulate
A wonderful Blog engine built on Umbraco
Stars: ✭ 178 (+63.3%)
Mutual labels:  disqus
Disqus Php Api
利用 PHP cURL 转发 Disqus API 请求
Stars: ✭ 288 (+164.22%)
Mutual labels:  disqus
Talkyard
A community discussion platform: Brings together the main features from StackOverflow, Slack, Discourse, Reddit, and Disqus blog comments.
Stars: ✭ 1,219 (+1018.35%)
Mutual labels:  disqus
waline
💬 A Simple, Safe Comment System
Stars: ✭ 1,145 (+950.46%)
Mutual labels:  disqus
Yoyo
A dead simple comment engine built on top of AWS lambda and React, alternative comment service to Disqus.
Stars: ✭ 210 (+92.66%)
Mutual labels:  disqus
Gatsby Starter Lumen
A constantly evolving and thoughtful architecture for creating static blogs.
Stars: ✭ 1,797 (+1548.62%)
Mutual labels:  disqus

Angular Disqus Module

Add Disqus to your app instantly!

npm npm Build Status npm bundle size (minified + gzip) npm

Installation

NPM

$ npm install -S ngx-disqus

YARN

$ yarn add ngx-disqus

Usage

Import DisqusModule in the root module

import { DisqusModule } from "ngx-disqus";
@NgModule({
  imports: [
    // ...
    DisqusModule.forRoot('disqus_shortname')
  ]
})

The paramter shortname is the unique identifier for your website as registered on Disqus, make sure it is defined in your module.

Now you can add Disqus component

@Component({
  selector: 'any-component',
  template: `<disqus [identifier]="pageId"></disqus>`
})
export class AnyComponent {

  pageId = '/about';
}
  • Disqus component requires the identifier input to work properly on your app
  • For examplev if the page URL is localhost:4200/about then the identifier should be /about.

Here is a stackblitz

Lazy load DisqusModule

If you wish to lazy load this library, set the shortname value in the root module using DISQUS_SHORTNAME token.

import { DISQUS_SHORTNAME } from 'ngx-disqus';

@NgModule({
  providers: [
    { provide: DISQUS_SHORTNAME, useValue: 'shortname_value' }
  ]
})
export class AppModule { }

And just import DisqusModule in the feature module

import { DisqusModule } from 'ngx-disqus';

@NgModule({
  imports: [
    DisqusModule
  ]
})
export class FeatureModule { }

More Options

See Disqus official documentation (JavaScript configuration variables) before using these inputs.

<disqus [identifier]="pageId" [url]="url" [category]="catId" [language]="'en'"
        (newComment)="onComment($event)" (ready)="onReady($event)" (paginate)="onPaginate($event)"></disqus>

NOTE

The HashLocationStrategy is not compatible with Disqus

For more info check DISQUS on ajax sites


Issues

If you identify any errors in this component, or have an idea for an improvement, please open an issue!

Author

Murhaf Sousli

More plugins

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].