Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue localstore

watch: {
  input: function () {
    if (isLocalStorage() /* function to detect if localstorage is supported*/) {
      localStorage.setItem('storedData', this.input)
    }
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vue #localstore
ADD COMMENT
Topic
Name
6+8 =