3 ms·
Does this work using localStorage? What about PouchDB?
by foodog12 12y ago
Does this work using localStorage? What about PouchDB?
- skawful 12y agoloopback.createDataSource({localStorage: 'mydb', connector: loopback.Memory}); ...will allow you to read/write/replicate/etc models with the browser's localStorage. LoopBack replication/sync is similar to PouchDB. The important distinction is that loopback can sync with any connector that supports the basic crud methods: http://docs.strongloop.com/display/DOC/Data+sources+and+connectors#Datasourcesandconnectors-Connectors http://docs.strongloop.com/display/DOC/Data+sources+and+conn...