app-storage icon indicating copy to clipboard operation
app-storage copied to clipboard

Documentation insufficient to use element

Open martijnjanssen opened this issue 9 years ago • 1 comments

The documentation is lacking and not useful when trying to use app-localstorage-document. It is not clear at all how to initialize the storage correctly and get the element to work correctly. I am now trying to use the element, but since it is not clear how to initialize correctly, the value in the localstorage is undefined. However, the element does have the correct key.

With logging on, it lets me know that it is correctly calling the initialized method and got a new value: undefined.

martijnjanssen avatar Dec 10 '16 18:12 martijnjanssen

Same issue here, unable to understand how to override zeroValue. Also no way of defaulting to a value via properties on the elements, instead i have to set a default value on my element's properties and bind them to the app-localstorage-document. Although this works for me in most cases but fails in some cases where I want the newly updated value from the localstorage to trigger the observer but instead it triggers for me twice which is a problem.

puranjayjain avatar Dec 13 '16 05:12 puranjayjain