Ember-data-offline is an addon that extends ember-data to work in offline mode.
It caches records in the local storage (IndexedDB or equivalents).
ember install ember-data-offline
First, define your application adapter with offline support:
Then define a model and a serializer for it:
If your primary key is different from
'id', you have to specify it in the adapter and serializer:
// in adapter:;
For more information, please, take look at dummy app.
All syncornizations between local storage and backend are queued and performed sequentially.
- fork repo
git clone firstname.lastname@example.org:your-github/ember-data-offline.git
npm i && bower install
- add your feature
- cover with tests
- send PR!
[Licensed under MIT license] 1