A Vue plugin for managing cookies.
npm install vue-js-cookie
Include in the
body after loading Vue.js and it will automatically hook into Vue.
You can access this plugin either with
This package uses the very impressive JS-Cookie package.
// Create a cookie that will expire in 7 days this.$cookie.set('name', 'value', 7) // Get a cookie this.$cookie.get('name') // -> value // Remove a cookie this.$cookie.remove('name')
Blue Bay Travel Vue JS Cookie is licensed under The MIT License (MIT).
This package is very useful for vue developer, managing cookie is very hard but vue-js-cookie make it simple,vue-js-cookie documentation is very helpful