Skip to content

ReedD/angular-disqus-comments

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

Angular Disqus Comments

A directive to add Disqus comments into your angular templates

Install

yarn: yarn add angular-disqus-comments

npm: npm install --save angular-disqus-comments

Setup

Add angular-disqus-comments to your applications module dependencies and then during the configuration stage set shortName equal to the short name associated with your Disqus account. This can be found in your Disqus admin panel.

angular
	.module('myApp', [
		require('angular-disqus-comments'), // Added via Browserify (or similar)
		'angular-disqus-comments' // Or added manually
	])
	.config(['disqusCommentsProvider', function (disqusProvider) {
		disqusProvider.shortName = '<YOUR SHORT NAME>';
	}]);

Then in your template simply add <disqus-comments /> wherever you would like the comments injected.

About

Angular Disqus comment directive

Resources

Stars

Watchers

Forks

Packages

No packages published