Hello, I'm building a single page *mobile* hybrid app whose primary storage (that shown in the UI) is a local SQLite database. For the purposes of discussion just think of it persistence device storage that survives application relaunches, even reinstalls.
If the mobile app only stored data locally, I'd expect to use standard Angular recipes. More or less this. SQLite storage <-> business object/logic service <-> controllers <-> presentation Whenever the device has access to a network, it's supposed to synchronize data (e.g. uploads) data to a server database, via a REST service. It also downloads server data, via the REST API, into its local SQLite database. Whether the app is online or offline the data gets accumulated in the local database. The preferred mode of operation is to be online so that any changes in the local database are synced to the server as rapidly as possible. REST service <=> server database | | (something runs in background in SPA) | SQLite storage <-> business object/logic service <-> controllers <-> presentation I am having trouble finding examples of how to implement this — two way model synchronization (local is master, server is slave). Most examples I've found assume a server-side model, always connected, etc. I'm new to Angular. I'm a J2EE architect. Both broad strokes and examples would be helpful. Thoughts? Jason -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
