0.0.4 • Published 7 years ago

v-cache v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Watch on GitHub Star on GitHub PRs Welcome

npm npm npm bundle size (minified + gzip) npm

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