You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TodoMVC saves the todolist items (list) to localStorage
so that it's still there if the page is refreshed or closed (and returned to).
try it: http://todomvc.com/examples/vanillajs
What is the "MVP" of this?
The text was updated successfully, but these errors were encountered:
varmodel={'one': 1,'two': 2,'three': 3};// save the model (data) into storage as a stringified object:localStorage.setItem('elmish_store',JSON.stringify(model));// Retrieve the stringified object from localStorage:varretrieved_model=localStorage.getItem('elmish_store');console.log('Retrieved model: ',JSON.parse(retrieved_model));
TodoMVC saves the todolist items (list) to
localStorage
so that it's still there if the page is refreshed or closed (and returned to).
try it: http://todomvc.com/examples/vanillajs
What is the "MVP" of this?
The text was updated successfully, but these errors were encountered: