vue-netkg-counter
v0.0.4
Published
Counter NET.kg component for Vue.js
Downloads
7
Readme
Counter Net.kg component for Vue and Nuxt
Net.kg counter for SPA/SSR apps.
Add website and get counter ID
Install
npm install vue-netkg-counter --save
Usage
<script>
import NetKG from 'vue-netkg-counter'
export default {
name: "AwesomeComponent",
components: {
NetKG,
}
}
</script>
If you have the some problems with build, just try to import component directly
import NetKG from 'vue-netkg-counter/src/NetKG.vue'
If you need use it on multiply pages
import Vue from 'vue';
import NetKG from 'vue-netkg-counter';
Vue.component('net-kg-counter', NetKG);
Template area:
<template>
<NetKG site-id="1234" />
</template>