vue-social-sharing
Version:
A Vue.js component for sharing links to social networks
20 lines (16 loc) • 453 B
JavaScript
import AvailableNetworks from './networks'
import ShareNetwork from './share-network'
export default {
install: (Vue, options) => {
Vue.component(ShareNetwork.name, ShareNetwork)
Vue.prototype.$SocialSharing = {
options: {
networks: options && options.hasOwnProperty('networks') ? Object.assign(
AvailableNetworks,
options.networks
) : AvailableNetworks
}
}
}
}
export { ShareNetwork }