Angular directive for Disqus
Angular directive for embeding Disqus comments on your site.
Apart of standard disqus fields you can toggle visibility of disqus comments with ajax reloading them after switching visible on.
You can also use your own function as Disqus onReady callback.
Download the production version or the development version .
In your web page:
<script src="angular.js"></script>
<script src="dist/disqus-here.min.js"></script>
In your module:
angular.module('demo', ['disqusHere'])
Type:
String
Description:
Short name from Disqus settings
read more
Type:
String
Description:
Disqus url param
read more
Type:
String|Integer
Description:
Disqus identifier param
read more
Type:
String
Description:
Disqus title param
read more
Type:
String
Description:
Disqus category_id param
read more
Type:
Boolean
Description:
Disqus disable_mobile param
read more
Type:
Function
Description:
Function which will be fired with disqus onReady callback
Type:
Boolean
Description:
Binded value for toggling visibility of comments
Default:
true
<disqus-here shortname="your-disqus-shortname"></disqus-here>
<disqus-here shortname="your-disqus-shortname"
url="{{disqusPageUrl}}"
identifier="{{disqusPageID}}"
title="{{disqusPageTitle}}"
disable-mobile="{{disqusDisableMobile}}"
category-id="{{disqusCatID}}"
on-ready="onCommentsReady()"
display-comments="commentsVisible">
</disqus-here>
Feel free to open an issue or send a pull request.
MIT License. See the LICENSE file.
Copyright © 2014 Łukasz Żak. Contact me at
<zlukasz.poczta@gmail.com>
.