Skip to content

Latest commit

 

History

History
68 lines (55 loc) · 1.37 KB

README.md

File metadata and controls

68 lines (55 loc) · 1.37 KB

Build Status Built with Grunt

Angular Social Count

Angular Social Count is a directive that just counts shares, likes, ...etc on social networks.

Demo page

http://bahaaldine.github.io/angular-social-count

Installation

Install depedencies using bower:

bower install angular-social-count

Add js libraries to your application:

	...
	<script src="bower_components/angular-social-count/dist/angular-social-count.js"></script>
    ...

Add ngSocialCount module to you application

	...
	angular
	  .module('myAwesomeApp', [
	    ...
	    'ngSocialCount',
	    ...
	  ])
	...

Usage

Facebook

  ...
  <ng-fb-like-count class="counter" url="{{url}}"></ng-fb-like-count>
  <ng-fb-share-count class="counter" url="{{url}}"></ng-fb-share-count>
  <ng-fb-comment-count class="counter" url="{{url}}"></ng-fb-comment-count>
  ...

Twitter

  ...
  <ng-tw-share-count class="counter" url="{{url}}"></ng-fb-share-count>
  ...

Pinterest

  ...
  <ng-pn-share-count class="counter" url="{{url}}"></ng-fb-share-count>
  ...

Linkedin

  ...
  <ng-ln-share-count class="counter" url="{{url}}"></ng-fb-share-count>
  ...