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
Hope you were assisted, if not, research on storing the json stringified model to localstorage. Also avoid storing sensitive data on localstorage :)
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.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
Hope you were assisted, if not, research on storing the json stringified model to localstorage. Also avoid storing sensitive data on localstorage :)
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.