Created
July 11, 2019 21:57
-
-
Save iazel/6d296d91e03d51e42fc29a8b0c8afa23 to your computer and use it in GitHub Desktop.
Composable Reactive UI / TodoStore / addTodo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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