Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalStorage item not created #8

Open
doubletaketech opened this issue May 19, 2014 · 0 comments
Open

LocalStorage item not created #8

doubletaketech opened this issue May 19, 2014 · 0 comments

Comments

@doubletaketech
Copy link

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant