For reference, here is the jsfiddle of my problem.
Overview of the problem:
I have two lists side by side in the UI but the second list is actually an array of items on the selected item in the first list. So the data structure is like this...
var VM = {
listOfStuff: [
{
subItems: [{},{}]
},
{
subItems: [{},{},{}]
}
]
}
with the UI looking like...
<ul id="list-of-stuff">
<li></li>
</ul>
<ul id="list-of-subitems-on-list-of-stuff">
<li></li>
</ul>
The problem is that I use a knockout foreach binding on the 'list-of-stuff' and it works just fine, but the subitems list never shows up. There are no binding errors or any other obvious issues so I'm not sure what I'm doing wrong...