I do following: my view model has an "items" array, what I want to render as a radio group via template and source binding:
and html:
Fiddle:
http://jsfiddle.net/ctbcZ/7/
It renders correctly, but if I select radio button it does not fire changing "selectedValue"
Actually, in this scenario "checked" binding should be applied to parent model, but as far as I understood, in a nested model I have both parent and child model, is this correct? If yes, this is very bad, because values from nested models overwrites parent if they have same name.
Is it possible in template refer only to current model ("data" does not work for example for "value" binding)?
Is it possible to refer parent model members, or send a link to parent model as template option? I need at least 2 things from parent model: name, which should be the same for radios and selectedValue to set.
Why selectedValue in my example does not changes?
Please help