todo-app-angular/src/app/tasks/tasks.component.html
Maxime Delporte f91561db26
All checks were successful
Deploying Website / build (push) Successful in 1m2s
Updating naming functions and variables. Adding onCancel call when click on the background.
2025-04-21 21:44:20 -03:00

28 lines
551 B
HTML

@if (isAddingTask) {
<app-new-task (cancel)="onCancelAddTask()" />
}
<section id="tasks">
<header>
<h2>{{ user.name }}'s Tasks</h2>
<menu>
<button (click)="onStartAddTask()">Add Task</button>
</menu>
</header>
@if (selectedUserTasks) {
<ul>
@for (task of selectedUserTasks; track task.id) {
<li>
<app-task
[task]="task"
(complete)="onCompleteTask($event)"
/>
</li>
}
</ul>
} @else {
<p>Create a new task for his user.</p>
}
</section>