block by bradoyler 3b706bbfbb4e3b17f4a00dd092ce78e5

A Vue.js plugin for idb-keyval

Vue-idb-keyval

A Vue.js plugin for idb-keyval

Setup

copy idb-keyval.js to your plugins folder in your vue app

Usage

import Vue from 'vue';
import $idb from './plugins/idb-keyval';

Vue.use($idb);

// then just use the $idb global in your Vue app
Vue.$idb.set('my.key', 'my value')

idb-keyval.js