Initial
This commit is contained in:
commit
28c0420354
39 changed files with 9664 additions and 0 deletions
31
src/app/todo-table/todo-table.html
Normal file
31
src/app/todo-table/todo-table.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<p>todo-table works!</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Done</td>
|
||||
<td>Name</td>
|
||||
<td>Due</td>
|
||||
<td>Actions</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for (task of tasks.value(); track task.id) {
|
||||
<tr>
|
||||
<td>
|
||||
<input
|
||||
(change)="toggleTaskDoneStatus(task)"
|
||||
type="checkbox"
|
||||
name=""
|
||||
[checked]="task.done"
|
||||
/>
|
||||
</td>
|
||||
<td>{{task.title}}</td>
|
||||
<td>{{task.dueDate}}</td>
|
||||
<td>
|
||||
<button (click)="editTask(task)">Edit</button
|
||||
><button (click)="deleteTask(task)">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue