How to retrieve data using an Ember Local Storage Adapter?


#1

Hello! I’m trying to understand how the Ember Local Storage addon works. It looks like when you use the local storage adapter, there is no way to make a request to the server anymore (tell me if I’m wrong).

So I was wondering if there is a way to retrieve my models from the server, and keep them saved in the local storage?

What is the best practise to do that?

Thanks.


#2

If you have a backend choice consider running CouchDB yourself or use Cloudant. It will enable you to use ember-pouch that retrieves models from the server and keep them saved in local storage using IndexedDB or WebSQL. See also: