OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 for details. All rights reserved. Use of this source code is governed by a | 4 for details. All rights reserved. Use of this source code is governed by a |
5 BSD-style license that can be found in the LICENSE file. | 5 BSD-style license that can be found in the LICENSE file. |
6 --> | 6 --> |
7 <html lang="en"> | 7 <html lang="en"> |
8 <head> | 8 <head> |
9 <!-- | 9 <!-- |
10 This test runs the TodoMVC app and evaluates that it renders correctly. | 10 This test runs the TodoMVC app and evaluates that it renders correctly. |
(...skipping 12 matching lines...) Expand all Loading... |
23 <section id="todoapp"> | 23 <section id="todoapp"> |
24 <header id="header"> | 24 <header id="header"> |
25 <h1 class='title'>todos</h1> | 25 <h1 class='title'>todos</h1> |
26 <x-todo-form></x-todo-form> | 26 <x-todo-form></x-todo-form> |
27 </header> | 27 </header> |
28 <section id="main"> | 28 <section id="main"> |
29 <x-toggle-all></x-toggle-all> | 29 <x-toggle-all></x-toggle-all> |
30 <ul id="todo-list"> | 30 <ul id="todo-list"> |
31 <template iterate="x in app.todos"> | 31 <template iterate="x in app.todos"> |
32 <template if="viewModel.isVisible(x)"> | 32 <template if="viewModel.isVisible(x)"> |
33 <x-todo-row data-value="todo:x"></x-todo-row> | 33 <x-todo-row todo="{{x}}"></x-todo-row> |
34 </template> | 34 </template> |
35 </template> | 35 </template> |
36 </ul> | 36 </ul> |
37 </section> | 37 </section> |
38 <template if="viewModel.hasElements"> | 38 <template if="viewModel.hasElements"> |
39 <x-todo-footer id="footer"></x-todo-footer> | 39 <x-todo-footer id="footer"></x-todo-footer> |
40 </template> | 40 </template> |
41 </section> | 41 </section> |
42 <footer id="info"> | 42 <footer id="info"> |
43 <p>Double-click to edit a todo.</p> | 43 <p>Double-click to edit a todo.</p> |
(...skipping 21 matching lines...) Expand all Loading... |
65 viewModel.showDone = window.location.hash != '#/active'; | 65 viewModel.showDone = window.location.hash != '#/active'; |
66 dispatch(); | 66 dispatch(); |
67 window.setTimeout(() => window.postMessage('done', '*'), 0); | 67 window.setTimeout(() => window.postMessage('done', '*'), 0); |
68 } | 68 } |
69 window.on.hashChange.add(updateFilters); | 69 window.on.hashChange.add(updateFilters); |
70 window.on.popState.add(updateFilters); | 70 window.on.popState.add(updateFilters); |
71 } | 71 } |
72 </script> | 72 </script> |
73 </body> | 73 </body> |
74 </html> | 74 </html> |
OLD | NEW |