Global datastore for Polymer application

- 1 answer

Ad

I'm creating a global datastore <datastore /> web component for my Polymer application. It is responsible to retrieve/alter data from/on a server.

The datastore itself offers functions like get(query), set(object, attributes), create(attributes) and delete(object).

What would be the "WebComponent" way to use the <datastore> to offer data for other components? I'm also curious about how to two-way databinding could work between the datastore and other components.

Ad

Answer

Ad

Did you check out the firebase element? https://github.com/GoogleWebComponents/firebase-element It provides the same functionalities as you described but with the services of Firebase.

Ad
source: stackoverflow.com
Ad