Explorar o código

Commit 5.1: Add buttons to Task component.

Frederic G. MARAND %!s(int64=8) %!d(string=hai) anos
pai
achega
f3d20c055e
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      simple-todos.html

+ 5 - 1
simple-todos.html

@@ -25,5 +25,9 @@
 
 <!-- Custom "task" template -->
 <template name="task">
-  <li>{{text}}</li>
+  <li class="{{#if checked}}checked{{/if}}">
+    <button class="delete">&times;</button>
+    <input type="checkbox" checked="{{checked}}" class="toggle-checked" />
+    <span class="text">{{text}}</span>
+  </li>
 </template>