Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make an Angular.js app offline with server sync when available

I'm looking for an approach or a library that handles this. the idea is to store data in localstorage and sync to the backend when a connection is available, http://pouchdb.com/ looks like a cool solution but anyone has use it on production?

UPDATE:

Right now you can also use:

  • MeteorJS + Angular
  • Firebase
  • Parse
  • Horizon
like image 317
Orlando Avatar asked Feb 21 '13 15:02

Orlando


People also ask

Does AngularJS require server?

Angular Js doesn't require a server until you want to use angular directives like 'ng-include', or you want page routing or ajax request in your application.

Which service of Angular JS will interact with remote server?

The $http service is a core AngularJS service that facilitates communication with the remote HTTP servers via the browser's XMLHttpRequest object or via JSONP.


2 Answers

Haven't used it yet, but familiar w/ the concepts behind BreezeJS from their other offerings in .NET. Check it out http://www.breezejs.com/ and here's Ward Bell presenting it to the Googlers http://www.youtube.com/watch?v=P2ErSQj3SN8&feature=player_profilepage

like image 80
Mark Nadig Avatar answered Oct 02 '22 15:10

Mark Nadig


you can also take a look at jaydata http://jaydata.org/blog/synchronized-online-offline-data-applications-part-2-syncing-large-tables-and-tables-with-foreign-relations

like image 25
Gabor Dolla Avatar answered Oct 02 '22 15:10

Gabor Dolla