You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
{"ParentTitle":"Fred","Belongings":{"Title":"My stuff","Things":[{"Description":"Shoe","Amount":123},{"Description":"Hat","Amount":456}],"Summary":"I have lots"}}
The 'Belongings' object is a nested object (and not an array). The ko.mapping.fromJS(viewModelJs) does not make the Belongings object an observable so it's properties should be accessed as:
Belongings.Title
but the ko.Html.TextBox (and the ForEach functionality) create:
Belongings().Title
This then causes an exception in the call to:
ko.applyBindings(viewModel);
because it can't find Belongings().Title
I've manually created html without the () and the bindings work correctly.
Is it possible to fix do a urgent fix for this problem?
Thanks,
P
The text was updated successfully, but these errors were encountered:
For the following JSON:
{"ParentTitle":"Fred","Belongings":{"Title":"My stuff","Things":[{"Description":"Shoe","Amount":123},{"Description":"Hat","Amount":456}],"Summary":"I have lots"}}
The 'Belongings' object is a nested object (and not an array). The ko.mapping.fromJS(viewModelJs) does not make the Belongings object an observable so it's properties should be accessed as:
Belongings.Title
but the ko.Html.TextBox (and the ForEach functionality) create:
Belongings().Title
This then causes an exception in the call to:
ko.applyBindings(viewModel);
because it can't find Belongings().Title
I've manually created html without the () and the bindings work correctly.
Is it possible to fix do a urgent fix for this problem?
Thanks,
P
The text was updated successfully, but these errors were encountered: