MCPcopy Create free account
hub / github.com/TanStack/db / deleteTodo

Method deleteTodo

examples/angular/todos/src/app/app.ts:176–178  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

174 }
175
176 deleteTodo(id: number) {
177 todosCollection.delete(id)
178 }
179
180 getCompletedCount(): number {
181 return this.todoQuery.data().filter((todo) => todo.completed).length

Callers 3

handleDeleteTodoFunction · 0.80
TodoListFunction · 0.80
handleDeleteTodoFunction · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected