Angular Social Sharing Links
Flexible and easy social sharing directives for Twitter, Google Plus, Facebook, Pinterest, StumbleUpon, LinkedIn, and Reddit.
Installation
Bower:
bower install angular-social-links
Usage
angular;
Angular social links will automatically use the absolute URL of the current page:
share on twittershare on twittershare on facebookshare on google plusshare on pinterestshare on linkedinshare on stumbleuponshare on redditshare on vk.comshare on ok.rushare on xing
but you can define custom URLs too:
share on twittershare on facebookshare on google plusshare on pinterestshare on linkedinshare on stumbleuponshare on redditshare on vk.comshare on ok.rushare on xing
and custom click handlers for all directives:
share on twitter
you could set custom width and height for window:
share on twitter
You can use $event
(click event object) and $url
(the share link url).
This will prevent the popup window from coming up. If you don't use $event.preventDefault
, the link will navigate as usual.
Build
npm installgrunt build