DEV Community

[Comment from a deleted post]
Collapse
 
divan123 profile image
Divan123

Good day

I am just taking a chance here and asking if you guys have a sample off how to save view models let say a list of dogs offline with knockout.js retrieve them and pass them back to the server

Collapse
 
dakn2005 profile image
dakn2005

Hope you were assisted, if not, research on storing the json stringified model to localstorage. Also avoid storing sensitive data on localstorage :)

Collapse
 
ryios profile image
Ryan Mann

Knockout is a library, not a framework. It doesn't have a way to save json to a backend or anything like that. That's on you.

Typically I do this with jquery and Ajax calls to a backend rest api.