SteveSanderson/knockout — Issue #317: fromJs mapping and complex properties
Author: GilesBradshaw
Created: 2012-02-09 13:28:51+00:00
State: open

forgive me if I am missing something here but documentation says "How things are mapped

All properties of an object are converted into an observable. If an update would change the value, it will update the observable."

However when I map my Json I get observables for the simple properties (strings etc) and observable arrays for arrays. However complex properties come through not converted into observables (but with their properties converted). Shouldn't complex properties also be converted into observables - I can see that to do this you would need a mechanism for specifying a key so you could tell on update whether the complex property has changed to a new object or whether its properties have changed.

UNless this is possible is there a way that I can force an observable to make its subscribers refresh?