Search code examples
knockout.jsknockout-2.0knockout-3.0knockout-mvc

Is it a way to get Knockout keep doing binding even it failed for the previous one


Is it a way to let KO keep doing the binding for the rest of the elements,

<div id='div1' data-bind="wrong:aaaaa"></div>
<div id='div2' data-bind="value:qty"></div>

as "wrong" in "div1" is not a proper binding, knockout will stops there and will not try to bind "div2" is it a way to get KO keep doing the binding for "div2" thought that it has error on "div1"

thanks


Solution

  • I actually figured out it is not causing by KO, it is the code inside the custombinding stops it from working