phwebs-cookiebar

1.0.5 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i phwebs-cookiebar

Weekly Downloads

4

Version

1.0.5

License

ISC

Unpacked Size

2.48 kB

Total Files

3

Last publish

Collaborators

  • pavol.horvath