Skip to content

Instantly share code, notes, and snippets.

@chester89
Created October 30, 2012 12:16
Show Gist options
  • Save chester89/3979858 to your computer and use it in GitHub Desktop.
Save chester89/3979858 to your computer and use it in GitHub Desktop.
Being wrong about missing comment tag - Knockout
<tbody data-bind="foreach: competences">
<tr>
<td data-bind="attr: { colspan: $root.scales().length + 2 }">Competence"<b data-bind="text: name"></b>"</td>
<!-- ko foreach: results -->
<tr>
<td><span data-bind="text: indicatorNegativeDisplay"></span></td>
<!-- ko foreach: $root.scales -->
<td>
<label data-bind="text: numericValue"></label>
<input type="radio" name="" data-bind="value: numericValue, checked: $parent.selectedScale"/>
</td>
<!-- /ko -->
<td><span data-bind="text: indicatorPositiveDisplay"></span></td>
</tr>
</tr>
<!-- /ko -->
</tbody>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment