Skip to content

Commit c110c0c

Browse files
committed
add model.editing to sample model in examples/todo-list/index.html to demo editing #60
1 parent 0ffb30b commit c110c0c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: examples/todo-list/index.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
<script>
1919
var model = {
2020
todos: [
21-
// { id: 1, title: "Learn Elm Architecture", done: true },
22-
// { id: 2, title: "Build Todo List App", done: false },
23-
// { id: 3, title: "Win the Internet!", done: false }
21+
// { id: 0, title: "Make something people want.", done: false },
22+
// { id: 1, title: "Bootstrap for as long as you can", done: false },
23+
// { id: 2, title: "Let's solve our own problem", done: false }
2424
],
25-
hash: '#/' // the "route" to display
25+
hash: '#/', // the "route" to display
26+
// editing: 2 // edit the 3rd todo list item (which has id == 2)
2627
};
2728
mount(model, update, view, 'app', subscriptions);
2829
</script>

0 commit comments

Comments
 (0)