Consider the following object:
[{
key: 'value',
amounts: [{key: 'value}]
}]
This array is tied to a observableArray, we will call this foo.
self.foo = ko.observableArray([{
key: 'value',
amounts: [{key: 'value}]
}])
Then we can do:
<div id="something" data-bind="foreach: foo">
<div class="somethingElse">
// How do I get the amounts here?
</div>
</div>
So how would I, inside the element, get "amounts"? would it be:
data-bind="foreach: foo.amounts"
Seems logical to me ...
data-bind="foreach: amounts"