- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to make an Ember.js app offline with server sync when available?
Use the ember-localstorage adapter.
App.store = DS.Store.create({ revision: 11, adapter: DS.LSAdapter.create() });
Example
You 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 } }) });
- Related Articles
- How to make the user login for an offline web app?
- How to make an ImageView with rounded corners on Android App?
- Can Google Analytics track interactions in an offline HTML5 app?
- Can I make an Android app with Python?
- How to make an ImageView with rounded corners on Android App using Kotlin?
- How to make surfaceview transparent in an Android App?
- How much does it cost to make an iOS app?
- How to make a resizable element in React JS
- How to make an HTTP request on iOS App using Swift?
- How to make an HTTP POST request on iOS App using Swift?
- How to work with Camera in an Android App?
- How to add an extra new notification when push notification received in Android App?
- How to work with Camera in an Android App using Kotlin?
- How to make an area unclickable with CSS?
- Execute a script when the browser starts to work offline in HTML?

Advertisements