v-cache
v0.0.4
Published
VueJS directive that adds offline caching support for custom components and native form elements.
Downloads
7
Maintainers
Readme
Installation
// NPM
npm install v-cache --save
// Yarn
yarn add v-cache
main.js
import Vue from 'vue';
import vCache from 'v-cache';
Vue.directive("cache", vCache);
Basic Usage
App.vue
<template>
<div id="app">
<!-- Where the magic happens -->
<custom-form v-cache="'unique-key'" />
</div>
</template>
<script>
import CustomForm from "./components/CustomForm.vue"
export default {
name: "app",
components: {
CustomForm
}
}
</script>
Wish List
- Support for not caching password fields
LICENSE
MIT