is there any library that handles this? like the backbone.offline one?, if not, will this be difficult to implement with Ember.js?
UPDATE
this question has two libraries that can help, Breeze.js and Jaydata..
ember-localstorage
adapter can be used.
it can be used like other adapters.
App.store = DS.Store.create({
revision: 11,
adapter: DS.LSAdapter.create()
});
Another good library for ember and rails is ember-data-sync.js
Extend your App.Store from DS.SyncStore. Define the adapter you want to use for client-side storage:
App.Store = DS.SyncStore.extend({
revision: 10,
adapter: DS.IndexedDB.adapter({
mappings: {
person: App.Person,
persons: App.Person,
contact: App.Contact,
contacts: App.Contact
}
})
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With