Skip to content

Instantly share code, notes, and snippets.

Henning Klokkeråsen HenningKlokkeraasen

View GitHub Profile
HenningKlokkeraasen / ko.extendes.urlSync.js
Last active Aug 16, 2016 — forked from kamranayub/ko.extendes.urlSync.js
Knockout Extender: URLSync - syncs observable value with URL hash
View ko.extendes.urlSync.js
* An extender that syncs the observable with the address
* bar (using hash fragment). Will load from URL hash or
* querystring (at time of creation) and will
* update hash when observable changes.
* Options: string|object
* String: Query parameter key to get/set
* Object:
* - param - Query parameter key to get/set
You can’t perform that action at this time.