Hedge
Hedge

Reputation: 16748

Global datastore for Polymer application

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.

Upvotes: 3

Views: 284

Answers (1)

Pascal Gula
Pascal Gula

Reputation: 1173

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.

Upvotes: 3

Related Questions