Knockout-MultiModels icon indicating copy to clipboard operation
Knockout-MultiModels copied to clipboard

Conception issue

Open anodynos opened this issue 13 years ago • 2 comments
trafficstars

I am sorry, but I think one doesn't quite understand how your proposal is effectively different from ko2.1's

ko.applyBindings(myViewModel, document.getElementById('someElementId')). 

Could you please indicate a concrete scenario that can't be (easily) done with native ko whereas MultiModals shines ?

anodynos avatar Jul 24 '12 02:07 anodynos

I agree. What is the difference? (edit: Realizing i sound like a douche, not intended)

abergs avatar Aug 02 '12 06:08 abergs

I completely get what this plugin does. I needed to avoid grouping my form fields on the page. This was exactly what I was looking for.

There was just one alteration I needed to make to get my requirement to work - the refreshBindings method was restricted to only allow new fields in and not update the existing fields. I removed this limitation and my form now has the flexible 2 way binding I needed using multiple ViewModels. My form has a reset button which gets the original view model back and updates the fields.

Thanks!

cdaly2012 avatar Sep 03 '12 14:09 cdaly2012