MCPcopy
hub / github.com/socketio/socket.io / updateStore

Method updateStore

examples/angular-todomvc/src/app/store.ts:35–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 protected updateStore() {
36 localStorage.setItem('angular2-todos', JSON.stringify(this.todos));
37 }
38
39 private getWithCompleted(completed: boolean) {
40 return this.todos.filter((todo: Todo) => todo.completed === completed);

Callers 5

setAllToMethod · 0.95
removeCompletedMethod · 0.95
toggleCompletionMethod · 0.95
removeMethod · 0.95
addMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected