Skip to content

EOSBlox/blox-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<blox-store>

Get, set and delete JSON data from local storage

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.

Install blox-store

$ npm install blox-store

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Import

$ import 'blox-store';

Basic Use

<blox-store
    key="myApp"
    value="{'name': 'Will'}"
    operation="set">
</blox-store>

Javascript Use

<blox-store id="bloxStore"></blox-store>
<script>
    this.$.bloxStore.set('myApp', {'name': 'Will'})
    .then((hash) => {
        // Do Something
    })
    .catch((err) => {
        // Do Something
    })
</script>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors