Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 19, 2014 02:29
Show Gist options
  • Save devdays/a9eb00255e610a31bc1d to your computer and use it in GitHub Desktop.
Save devdays/a9eb00255e610a31bc1d to your computer and use it in GitHub Desktop.
Single Page App - How to extend Knockout to automatically store values
var viewModel = {
stringValue: ko.observable("Hello")
.extend({ localStore: "myString" })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment