1.0.5 • Published 3 years ago
phwebs-cookiebar v1.0.5
phwebs-cookiebar
Vue simple file component for displaying cookie bar with simple success.
Cookie succes expires is one year.
Installation
npm install phwebs-cookiebar --save
Dependencies
"vue": "^2.6.14"
"vue-cookie": "^1.1.4"
Usage
Before init your Vue application, you need to import a vue-cookie and use it for Vue.
import Vue from "vue"
import VueCookies from "vue-cookie"
Vue.use(VueCookies)
Then place phwebs-cookiebar component in your root component.
<template>
<div id="app">
<!-- your other components -->
<phwebs-cookiebar />
</div>
</template>
<script>
import PhwebsCookiebar from "phwebs-cookiebar"
export default {
components: {PhwebsCookiebar},
data() {
return {}
}
}
</script>