We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6540b0f commit 65f2c9cCopy full SHA for 65f2c9c
index.html
@@ -94,7 +94,7 @@ <h2 v-on:click="activateTodolist">{{todolist.title}} </h2>\
94
},
95
deleteItemInTodo: function(todoItem) {
96
var todoId = this.todolist.id;
97
- let ajaxDeleteUrl = 'http://localhost:3000/api/todos/todos/1/items/' + todoItem.id
+ let ajaxDeleteUrl = 'http://localhost:3000/api/todos/todos/'+ todoId +'/items/' + todoItem.id
98
this.todolist.all_items = this.todolist.all_items.filter(function(item) { return item.id !== todoItem.id});
99
$.ajax({
100
type: "DELETE",
0 commit comments