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
In my viewModel below, should I see a "projectItems" entry in localStorage? In Chrome, I'm looking at Tools>> Developer Tools >> Resources >> localStorage, but I don't see it getting created? I'm expecting to see an entry in localStorage that contains the full array.
Am I doing something wrong?
Thanks,
Don
projectsVM = {
items : ko.observableArray(null,{persist: 'projectItems'}),
selectedProject : ko.observable({persist: 'selectedProject'})
}
projectsVM.items = ko.mapping.fromJS( arr );
projectsVM.setItem = function(item) {
projectsVM.selectedProject(item);
}
The text was updated successfully, but these errors were encountered:
In my viewModel below, should I see a "projectItems" entry in localStorage? In Chrome, I'm looking at Tools>> Developer Tools >> Resources >> localStorage, but I don't see it getting created? I'm expecting to see an entry in localStorage that contains the full array.
Am I doing something wrong?
Thanks,
Don
projectsVM = {
items : ko.observableArray(null,{persist: 'projectItems'}),
selectedProject : ko.observable({persist: 'selectedProject'})
}
projectsVM.items = ko.mapping.fromJS( arr );
projectsVM.setItem = function(item) {
projectsVM.selectedProject(item);
}
The text was updated successfully, but these errors were encountered: