Add tache ok

This commit is contained in:
HarmandI 2022-02-15 15:03:35 +01:00
parent efb86420d0
commit 507edc6151
9 changed files with 83 additions and 53 deletions

View file

@ -12,10 +12,10 @@
class="todo-input"
placeholder="+ Nouvelle Tâche"
[(ngModel)]="todoTitle"
(keyup.enter)="addTache()"
(keyup.enter)="addTache(todo.id)"
/>
{{todo}}
<div class="element" *ngFor="let tache of todo.taches">
<div class="element-gauche">
@ -63,7 +63,7 @@
<div>{{ toDoRest() }} tâches</div>
</div>
<div class="extra-container">
<div>
<!-- <div>
<button [ngClass]="{ active: filter === 'tous' }" (click)="filter = 'tous'">
Toutes la To Do List
</button>
@ -80,6 +80,6 @@
Terminées
</button>
</div>
-->
</div>