Single share element
Includes only needed social networks and/or mobile messengers.
See lists of supported Social networks, Mobile messengers or Misc components.
// ./src/js/script.js
import Vue from "vue";
// Import vue-goodshare single elements
import VueGoodshareFacebook from "vue-goodshare/src/providers/Facebook.vue";
const app = new Vue({
el: "#app",
components: {
VueGoodshareFacebook
}
});
Add components to HTML template (with attributes):
<!-- ./index.html -->
<div id="app">
<vue-goodshare-facebook
page_url="https://github.com"
title_social="Facebook"
has_counter
has_icon
></vue-goodshare-facebook>
</div>
And result is: