04
FebVue-goodshare is a vue js component for social sharing, It offers a simple way to share a link on the pages of your website in the most popular (and not so) social networks and mobile messengers. This component has many features:
You can install this package via Npn:
npm install --save vue-goodshare
Single share element
Includes only needed social networks or mobile messengers.
/**
* Import Vue.js
*/
import Vue from "vue";
/**
* Import vue-goodshare single element
*/
import VueGoodshareFacebook from "vue-goodshare/src/providers/Facebook.vue";
const app = new Vue({
el: "#app",
components: {
VueGoodshareFacebook
}
});
Add component to HTML template (with attributes):
<div id="app">
<vue-goodshare-facebook
page_url="https://github.com/koddr/vue-goodshare"
title_social="Facebook"
has_counter
has_icon
></vue-goodshare-facebook>
</div>
Result
Facebook, Twitter, LinkedIn, Google Plus, Tumblr, Pinterest, Reddit
/**
* Import Vue.js
*/
import Vue from "vue";
/**
* Import vue-goodshare bundle
*/
import VueGoodshare from "vue-goodshare";
const app = new Vue({
el: "#app",
components: {
VueGoodshare
}
});
Add components to HTML template (without attributes):
<div id="app">
<vue-goodshare></vue-goodshare>
</div>
Result
For more details, you can visit its complete
documentation & source code on Github.
Published at : 04-02-2022
I am a highly results-driven professional with 12+ years of collective experience in the grounds of web application development especially in laravel, native android application development in java, and desktop application development in the dot net framework. Now managing a team of expert developers at Codebrisk.
Launch project