Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.
/ vue-add-local Public archive

tiny vue directive that let's you bind input value to local storage

License

Notifications You must be signed in to change notification settings

ngaboindev/vue-add-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VueAddLocal

bind input value to local storage

Installation

$ npm install vue-add-local

Example

<template>
  <div>
    <input type="text" v-add-local="'names'" placeholder="your names" />
    <select v-add-local="'countries'">
      <option value="RW">Rwanda</option>
      <option value="DRC">DRCongo</option>
      <option value="UG">Uganda</option>
    </select>
  </div>
</template>

<script>
import Vue from 'vue';
import VueAddLocal from 'vue-add-local';
Vue.use(VueAddLocal);

export default {
  name: 'App',
};
</script>

Demo

demo

About

tiny vue directive that let's you bind input value to local storage

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published