angular-disqus

Angular disqus directive
Homepage:
2 people use it
Author: D2987eb9402e60062ff45dd8a6b48d05?d=https%3a%2f%2fidenticons.github.com%2f4b86aae5bb7d25364458f9f4ab815d61 kirstein

angular-disqus Build Status

angular.js and disqus integration made easy

A set of directive(s) and services to simplify the life of developers.

Getting started


Add ngDisqus to required modules list

Register your shortname:

  1. by just adding it to window.disqus_shortname
  2. by configure with $disqusProvider and registering it via $disqusProvider.setShortname

Add comments to threads by using the disqus directive

Need to know


Disqus will only update on sites which use hashbang ( #! ).
Thats not something I have control over, so in order to use this plugin, please make sure that you have your $locationProvider.hashPrefix('!') set.

Disqus identifiers


Disqus identifiers must be passed to the directive as as expressions. If the plan is to pass a constant then one must make sure that the constant is wrapped in ' apostrophes (_disqus="'id'""_)

API


  1. $disqus#getShortname getter for the current shortname
  2. $disqus#comment will reset comments (or generate comments if needed)
  3. $disqusProvider#setShortname setter for shortname

Devel


comments powered by Disqus
This page was last updated about 4 years ago.