A simple Knockout extender for store.js (https://github.com/marcuswestin/store.js)
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
ko.extenders.store.js
package.json

README.md

ko.extenders.store

A simple Knockout extender for marcuswestin/store.js.

Usage

Using Require.js

// Using Require.js (require last, as it doesn't export anything)
require(["ko.extenders.store"], function () {
  // The observable's value is stored in storage under key "search-terms".
  my_observable.extend({ store: "search-terms" });
});

Plain old script tags

<script src="ko.extenders.js"></script>
<script>
  // The observable's value is stored in storage under key "search-terms".
  my_observable.extend({ store: "search-terms" });
</script>