Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Latest commit

 

History

History
38 lines (29 loc) · 677 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 677 Bytes

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