backbone.epoxy icon indicating copy to clipboard operation
backbone.epoxy copied to clipboard

Option to populate model from DOM on initializing bindings

Open obourne opened this issue 10 years ago • 1 comments

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

obourne avatar Feb 10 '15 11:02 obourne

I'm also looking to be able to do this.

chriscollinsboxuk avatar Feb 10 '16 12:02 chriscollinsboxuk