Skip to content Skip to sidebar Skip to footer

How To Bind A Model To Knockout If The Model Is Not A Top-level Object?

I am learning knockout.js. I did one example earlier, which I am trying to modify in two ways: I organized the code to minimize global scope so there's just one top-level object i

Solution 1:

I think you really need the mapping plugin and to change/put a value will need to do:

model.friend.firstName(firstName)

I will try your code later and if is necessary i will edit my answer.

Post a Comment for "How To Bind A Model To Knockout If The Model Is Not A Top-level Object?"