Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/db
/ toggleTodo
Method
toggleTodo
examples/angular/todos/src/app/app.ts:170–174 ·
view source on GitHub ↗
(id: number)
Source
from the content-addressed store, hash-verified
168
}
169
170
toggleTodo(id: number) {
171
todosCollection.update(id, (draft: any) => {
172
draft.completed = !draft.completed
173
})
174
}
175
176
deleteTodo(id: number) {
177
todosCollection.delete(id)
Callers
3
handleToggleTodo
Function · 0.80
TodoList
Function · 0.80
handleToggleTodo
Function · 0.80
Calls
1
update
Method · 0.45
Tested by
no test coverage detected