backbone.epoxy
backbone.epoxy copied to clipboard
Option to populate model from DOM on initializing bindings
At the moment when you initialize the view bindings if the inputs you are binding to already have values that have been populated from the server they will be overwritten by the model defaults where in many cases you might want the model defaults to be overwritten by what is passed from the server.
A config option could be created to determine whether to sync from DOM to model or Model to DOM on initializing. Perhaps there is a way to do this already but I couldn't find it after searching for a few hours.
Thanks
I'm also looking to be able to do this.