WinJS Two-Way Bindings

1 · Adam Tuliper · June 3, 2013, 4:24 a.m.
I learned a really cool trick from one of my team members Jeremy Foster over at codefoster.com to do two-way binding in WinJS.To do binding, the procedure is two steps. Since WinJS doesn't support two way bindings we need to define each one way binding. The first from source data to the destination and is done via WinJS.Binding.defaultBind. The second from the binding target back to the source data (in this case actually just from the input text box to the source model is done from an onchange e...