Backbone.Safe
Backbone.Safe copied to clipboard
Documentation on restoring from localstorage
Hi Oren, thanks for great plugin!
Please adivce how to restore saved models and collections from localstorage with your plugin? If you could provide sample code I will be glad to write the docs =)
Hi @ikido . if you refresh the page and create a Safe with the same key, it will restore the last saved data from local storage. otherwise, you can refer to "this.safe" and invoke the "getData" method.