Skip to content

A Vue JS directive to save your users form values so they are persisted if the browser is refreshed or the session is destroyed.

Notifications You must be signed in to change notification settings

Reached/vue-rescue-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

vue-rescue-input

If you have ever tried losing your input values because of a random browser refresh or any other incident that was out of your control, you know how frustrating this is for the user experience. Saving the form values using localstorage has been a known UX enhancement for a long time, I could not find anything that worked for me with Vue JS, which is why I decided to create this directive.

Getting Started

Install the directive through npm npm install vue-rescue-input, import it import VueRescue from 'vue-rescue-input', then use the directive by doing Vue.use(VueRescue).

On your inputs you will now be able to do <input type="text" v-rescue-input> - your input will now be saved in localstorage - try to refresh your browser.

You can see a live demo of the directive here:

https://codepen.io/Reached/pen/GEKZVB

Prerequisites

  • npm
  • Vue JS 2.*

Installing

TODO - See the Getting Started section for now

Authors

  • Casper Sørensen -

Follow me on Twitter @csasorensen

Acknowledgments

About

A Vue JS directive to save your users form values so they are persisted if the browser is refreshed or the session is destroyed.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published