M
M
mue2014-07-31 15:28:05
backbone.js
mue, 2014-07-31 15:28:05

How to store data locally on the client?

Hello.
There is an application on phonegap, a backbone client.
I would like that when saving the model, depending on the variable in the config, the data is saved either on the server or locally.
How to save locally?
The model should in both cases should return the same query parameters.
Perhaps some module is needed that will simulate the server.
It will accept requests from the model and process them. Or something different.
Has anyone faced this issue?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mue, 2014-07-31
@mue

Seems like a good solution
https://github.com/biril/backbone-faux-server

P
personaljs, 2014-08-08
@personaljs

https://github.com/jeromegn/Backbone.localStorage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question