https://github.com/tinacious/angular-easy-social-share
An easy way way to share the current page on an AngularJS app with Twitter, Facebook and LinkedIn.
https://github.com/tinacious/angular-easy-social-share
angularjs
Last synced: 8 months ago
JSON representation
An easy way way to share the current page on an AngularJS app with Twitter, Facebook and LinkedIn.
- Host: GitHub
- URL: https://github.com/tinacious/angular-easy-social-share
- Owner: tinacious
- License: mit
- Created: 2014-04-13T01:58:40.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T03:33:23.000Z (almost 6 years ago)
- Last Synced: 2025-06-20T04:07:03.062Z (12 months ago)
- Topics: angularjs
- Language: JavaScript
- Homepage:
- Size: 274 KB
- Stars: 31
- Watchers: 5
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# AngularJS Easy Social Share
An easy way way to share the current page on an AngularJS app with Twitter, Facebook, Google Plus, and LinkedIn.
This directive uses URL links to share your page's content on each of the social media networks and therefore doesn't require the use of an app ID.
View a demo [here](http://tinacious.github.io/angular-easy-social-share/).
## Usage
This repository can be installed using Bower:
```bash
bower install angular-easy-social-share --save
grunt bower-install
```
### Dependencies
This directive requires [Font Awesome](https://github.com/components/font-awesome). Installing using Bower should download the required dependency but Font Awesome may need to be referenced manually.
1. Make sure `easy-social-share.js` is included.
2. Add `td.easySocialShare` as an app dependency.
3. Use the `share-links` directive in your view's HTML as follows:
```html
```
### Options
If you would like to use the square version of Font Awesome, be sure to include the attribute `share-square="true"` otherwise it will use the version without the square.