Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 655
Hedge Avatar asked May 25 '26 09:05

Hedge


1 Answers

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.

like image 195
Pascal Gula Avatar answered May 27 '26 23:05

Pascal Gula