This saves your collections or models to localStorage. Here is an example in the model:
ko.Model.extend({
name: 'myModelName',
options: {
storage: 'localStorage'
}
})
This is how to set it up in a collection:
ko.Collection.extend({
name: 'myCollectionName',
options: {
storage: 'localStorage'
}
});