gmac / backbone.epoxy

Declarative data binding and computed models for Backbone
http://epoxyjs.org
MIT License
615 stars 89 forks source link

Option to populate model from DOM on initializing bindings #110

Open obourne opened 9 years ago

obourne commented 9 years ago

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

chriscollinsboxuk commented 8 years ago

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