Skip to content

Commit

Permalink
Step 6 | Sync local storage with remote DB
Browse files Browse the repository at this point in the history
  • Loading branch information
amahdy committed Mar 30, 2017
1 parent 9aba643 commit 8de9d67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/offline-first-app/offline-first-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ <h3>Editor</h3>

ready: function() {

PouchDB.replicate(this.remoteDB, this.localDB);
PouchDB.sync(this.remoteDB, this.localDB, {
live: true,
retry: true,
});

var grid = this.$.lazyGrid;

Expand Down

0 comments on commit 8de9d67

Please sign in to comment.