Essentially I have the following 2 dimensional array:
"items":
[
["",""],
["",""],
["",""]
]
I want to iterate over this collection using knockout and I got the following:
<!-- ko foreach: items -->
<tr>
<td>
<button type="button" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Column</button>
</td>
<!-- ko foreach: $data -->
<td>
<input type="text" class="form-control" data-bind="value: $data" />
</td>
<!-- /ko -->
</tr>
<!-- /ko -->
However, this does not appear to be working. Any ideas?
Thanks in advance
G