angulike

AngularJS directives for social sharing buttons - Facebook Like, Google+, Twitter and Pinterest

Angular Core Dependency: >=1.2.16

Module License: MIT

Added by: Sam Deering

GitHub

Repository

cornflourblue/angulike

Stats

Stars: 38

Watchers: 38

Forks: 29

Module Description

angulike

AngularJS directives for social sharing buttons - Facebook Like, Google+, Twitter and Pinterest

###Demo

To see a demo and further details go to http://jasonwatmore.com/post/2014/08/01/AngularJS-directives-for-social-sharing-buttons-Facebook-Like-GooglePlus-Twitter-and-Pinterest.aspx

###Installation

Install using bower: bower install angulike

Alternatively download the code and include the angulike.js file in your page.

Add the 'angulike' directive as a dependency of your AngularJS application:

angular.module('myApp', ['angulike']);

###Usage

####Facebook Like

Create an empty div with the fb-like attribute.

<div fb-like></div>

To use a custom URL for the facebook like button:

<div fb-like="myModel.Url"></div>

####Google+

Create an empty div with the google-plus attribute.

<div google-plus></div>

To use a custom URL for the google plus button:

<div google-plus="myModel.Url"></div>

####Twitter

Create an empty div with the tweet attribute, the value of the attribute contains the name of the model object for the tweet text.

<div tweet="myModel.Name"></div>

To use a custom URL for the tweet button:

<div tweet="myModel.Name" tweet-url="myModel.Url"></div>

####Pinterest

Create an empty div with the pin-it and pin-it-image attributes, the pin-it attribute contains the name of the model object for the description and the pin-it-image attribute contains the name of the model object for the image url:

<div pin-it="myModel.Name" pin-it-image="myModel.ImageUrl"></div>

To use a custom URL for the pinterest button:

<div pin-it="myModel.Name" pin-it-image="myModel.ImageUrl" pin-it-url="myModel.Url"></div>

Module stats last updated: 2017-06-04 16:00:06

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!