Polymer应用程序的全局数据存储

Global datastore for Polymer application

本文关键字:数据 存储 全局 应用程序 Polymer      更新时间:2023-09-26

我正在为我的Polymer应用程序创建一个全局数据存储<datastore /> web组件。它负责从服务器上检索/更改数据。

数据存储本身提供类似get(query), set(object, attributes), create(attributes) and delete(object)的功能。

使用<datastore>为其他组件提供数据的"WebComponent"方式是什么?我还很好奇如何在数据存储和其他组件之间进行双向数据绑定。

您检查了firebase元素吗?https://github.com/GoogleWebComponents/firebase-element它提供了与您描述的相同的功能,但使用了Firebase的服务。