Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Created February 14, 2016 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshcutdevelopment/84c76931872daabd759c to your computer and use it in GitHub Desktop.
Save freshcutdevelopment/84c76931872daabd759c to your computer and use it in GitHub Desktop.
Enhanced todo table
<template>
...
<tbody>
<tr repeat.for="todoItem of todoItems">
<td>${todoItem.id}</td>
<td><span class="${todoItem.is_complete ? 'completed-task' : 'incomplete-task'}"> ${todoItem.text} </span></td>
<td>${todoItem.created_at | dateFormat}</td>
<td><input type="checkbox"checked.bind="todoItem.is_complete"></input></td>
</tr>
</tbody>
</table>
...
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment