If I want to bind a template to a plain old array of strings, what do I put in the ${??} expression?
I hope this snippet isn\'t too short so as to confuse:
From the documentation, the answer is:
When using a template: ${$data}
${$data}
When not using a template: $data
$data
For unnamed array (JSON like: ["value1", "value2"]), it would be:
<ul data-bind="foreach: $root"> <li data-bind="text: $data"></li> </ul>
$root keyword does the trick.