Create a gist now

Instantly share code, notes, and snippets.

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