I want to load data via an ajax call from the server and map it via knockout mapping plugin into my knockout data model. The loading of the data works, only problem is that in the parent model the computed observables are not updated anymore. Can somebody explain to me what I’m doing wrong? Thanks!
Created a fiddle to demonstrate my problem:
http://jsfiddle.net/N9Pmt/27/
Your data contains
sumtest: 0. This ends up replacing the existingcomputedwith a new observable by the end of the mapping process. The existing computed still gets re-evaluated, but the binding can no longer find it, since it has been replaced.One solution is to ignore
sumtestin your mapping options like: http://jsfiddle.net/rniemeyer/N9Pmt/28/