Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 19, 2014 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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