简体   繁体   English

带有本地存储的Ember数据示例

[英]Ember Data with Local Storage Example

Im trying to piece together a simple working Ember data example using the local storage adapter ( https://github.com/rpflorence/ember-localstorage-adapter ). 我试图使用本地存储适配器( https://github.com/rpflorence/ember-localstorage-adapter )拼凑一个简单的有效Ember数据示例。 I purposely want to keep this simple and in a single file so I can start to understand whats going on. 我有意将其保持在一个简单的文件中,这样我就可以开始了解发生了什么。

Does anybody have an example they can share that includes local-storage CRUD operations (console output is all I need) ? 是否有人可以分享包括本地存储CRUD操作的示例(我只需要控制台输出)?

Regards, 问候,

Carl 卡尔

Have a look at https://github.com/kiwiupover/ember-weather/blob/master/app/routes/locations.js this is a weather dashboard that saves and deletes locations to localstorage. 看看https://github.com/kiwiupover/ember-weather/blob/master/app/routes/locations.js这是一个天气仪表板,可保存和删除本地存储位置。

http://emberweather.com/locations/seattle-washington http://emberweather.com/locations/seattle-washington

I hope that helps. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM