From ffbcc88df27cfc3127406f6e5596e3a5984fab90 Mon Sep 17 00:00:00 2001 From: HarmandI Date: Tue, 15 Feb 2022 15:19:53 +0100 Subject: [PATCH 1/2] ne pas en tenir compte Merci --- .../to-do-list/to-do-list.component.html | 2 +- .../to-do-list/to-do-list.component.ts | 39 +------------------ 2 files changed, 3 insertions(+), 38 deletions(-) diff --git a/src/app/components/to-do-list/to-do-list.component.html b/src/app/components/to-do-list/to-do-list.component.html index ffef4f0..e06e89c 100644 --- a/src/app/components/to-do-list/to-do-list.component.html +++ b/src/app/components/to-do-list/to-do-list.component.html @@ -15,7 +15,7 @@ (keyup.enter)="addTache(todo.id)" /> -{{todo}} +
diff --git a/src/app/components/to-do-list/to-do-list.component.ts b/src/app/components/to-do-list/to-do-list.component.ts index fd23fb9..5664c70 100644 --- a/src/app/components/to-do-list/to-do-list.component.ts +++ b/src/app/components/to-do-list/to-do-list.component.ts @@ -34,32 +34,12 @@ export class ToDoListComponent implements OnInit { } ngOnInit(): void { - //this.refreshTodo(); this.beforeEditCache = ''; this.casesRestantes=true; this.filter='tous'; this.idTodo = 4; this.todoTitle = ''; - /* this.todos = [ - { - id: 1, - texte: 'Finish Angular Screencast', - etat: false, - editing: false, - }, - { - id: 2, - texte: 'Take over world', - etat: false, - editing: false, - }, - { - id: 3, - texte: 'One more thing', - etat: false, - editing: false, - }, - ]; */ + } //ajouter tache @@ -76,23 +56,8 @@ console.log(idTodoList); this.TodoService.addTache(tache,idTodoList).subscribe((resp)=>{ window.location.reload(); }) - /* if (this.todoTitle.trim().length === 0) { - return; - } - - this.todos.push({ - id: this.idTodo, - title: this.todoTitle, - completed: false, - editing: false, - }); - this.todoTitle = ''; - this.idTodo++; */ } - /* if (contact.nom !== '') { - this.repertoireService.addContact(contact).subscribe((resp) => { - this.router.navigate(['repertoire/']); - }); */ + //modifier la tâche From 1bed92a6e4e52787c468fff10578c71d8edbe114 Mon Sep 17 00:00:00 2001 From: HarmandI Date: Wed, 16 Feb 2022 15:32:19 +0100 Subject: [PATCH 2/2] =?UTF-8?q?mise=20=C3=A0=20jour=20de=20ma=20branche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/services/todo.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/todo.service.ts b/src/app/services/todo.service.ts index f208bdd..d6adca3 100644 --- a/src/app/services/todo.service.ts +++ b/src/app/services/todo.service.ts @@ -25,7 +25,7 @@ export class TodoService { } addTache(newtache: Tache,idTodoList:number): Observable { - console.log(newtache); + console.log(newtache +'gkggg'); return this.http.post(`${this.apiUrl}/taches/add/${idTodoList}`, newtache); } }