Found 1 Articles for Ember JS

How to make an Ember.js app offline with server sync when available?

Arjun Thakur
Updated on 25-Jun-2020 07:55:53

82 Views

Use the ember-localstorage adapter.App.store = DS.Store.create({    revision: 11,    adapter: DS.LSAdapter.create() });ExampleYou need to 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       }    }) });

1
Advertisements