Flexible and easy social sharing directives for Twitter, Google plus and Facebook
Flexible and easy social sharing directives for Twitter, Google Plus, Facebook, Pinterest, StumbleUpon, LinkedIn, and Reddit.
Bower:
``shell`
bower install angular-social-links
`javascript`
angular.module('myApp', ['socialLinks']);
Angular social links will automatically use the absolute URL of the current page:
`html`
share on twitter
share on twitter
share on facebook
share on google plus
share on pinterest
share on linkedin
share on stumbleupon
share on reddit
share on vk.com
share on ok.ru
share on xing
but you can define custom URLs too:
`html`
share on twitter
share on facebook
share on google plus
share on pinterest
share on linkedin
share on stumbleupon
share on reddit
share on vk.com
share on ok.ru
share on xing
and custom click handlers for all directives:
`html`
share on twitter
you could set custom width and height for window:
`html`
share on twitter
You can use $event (click event object) and $url (the share link url).$event.preventDefault
This will prevent the popup window from coming up. If you don't use , the link will navigate as usual.
`shell``
npm install
grunt build
MIT: http://fixate.mit-license.org/