Skip to content

Instantly share code, notes, and snippets.

@iazel
Created July 11, 2019 21:57
Show Gist options
  • Save iazel/6d296d91e03d51e42fc29a8b0c8afa23 to your computer and use it in GitHub Desktop.
Save iazel/6d296d91e03d51e42fc29a8b0c8afa23 to your computer and use it in GitHub Desktop.
Composable Reactive UI / TodoStore / addTodo
addTodo(todo: string): void {
this.todos.push({
text: todo,
done: new StreamBox(false)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment