https://github.com/paramsinghvc/ngsocialshare
ngSocialShare is an angular plug and play Social Share Directive that supports configuring the various social networks on which you want to share data from your angular apps
https://github.com/paramsinghvc/ngsocialshare
Last synced: over 1 year ago
JSON representation
ngSocialShare is an angular plug and play Social Share Directive that supports configuring the various social networks on which you want to share data from your angular apps
- Host: GitHub
- URL: https://github.com/paramsinghvc/ngsocialshare
- Owner: paramsinghvc
- License: mit
- Created: 2015-12-31T16:52:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-31T18:17:00.000Z (over 10 years ago)
- Last Synced: 2025-01-10T22:24:44.739Z (over 1 year ago)
- Language: JavaScript
- Size: 44.9 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngSocialShare
ngSocialShare is an angular plug and play Social Share Directive that supports configuring the various social networks on which you want to share data from your angular apps
#### Demo

#### Usage
1. Plug the ngSocialShare Module into your app module.
```javascript
angular.module('yourAppModuleName' , ['ngSocialShare']);
```
2. In your markup, include the social-share directive like this.
```html
```
3. In your myController, specify a shareOptions object on vm as
```javascript
this.shareOptions = {
enabledNetworks: ['twitter', 'pinterest', 'googlePlus', 'email'],
title: 'Eminem',
description: 'Guts over Fear',
url: 'http://google.com',
networks: {
facebook: {
title: '',
description: '',
caption: '',
appId: null,
loadWidget: false
},
twitter: {
text: '',
url: '',
hashtags: 'Coldplay, Paradise',
via: '',
related: ''
},
pinterest: {
description: ''
},
googlePlus: {
url : ''
},
email: {
title: '',
description: ''
},
whatsapp: {
description: ''
}
}
}
```
Note : If you wanna use the FB Share Dialog Implementation, you need to set the loadWidget option to true and set the Facebook appId.