Something I've been thinking about recently is the ability to create a model by parsing the specified dom branch. Most of my use for 2 way bindings is with Bootstrap Modal dialogs.
So I'd call a function passing it the root element of the dialog and it would look for data-bindto="xyz" attributes and return an object that represented the model.
I appreciate that this may only work for simpler models, but that's fine for my use case.
-Neville
Something I've been thinking about recently is the ability to create a model by parsing the specified dom branch. Most of my use for 2 way bindings is with Bootstrap Modal dialogs.
So I'd call a function passing it the root element of the dialog and it would look for
data-bindto="xyz"attributes and return an object that represented the model.I appreciate that this may only work for simpler models, but that's fine for my use case.
-Neville