Sử dụng bộ điều hợp ember-localstorage.
App.store = DS.Store.create({
revision: 11,
adapter: DS.LSAdapter.create()
}); Ví dụ
Bạn cần xác định bộ điều hợp bạn muốn sử dụng để lưu trữ phía máy khách -
App.Store = DS.SyncStore.extend({
revision: 10,
adapter: DS.IndexedDB.adapter({
mappings: {
person: App.Person,
persons: App.Person,
contact: App.Contact,
contacts: App.Contact
}
})
});