OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --> | 9 --> |
10 <!Doctype html> | 10 <!Doctype html> |
11 | 11 |
12 <html> | 12 <html> |
13 <head> | 13 <head> |
14 <meta charset="UTF-8"> | 14 <meta charset="UTF-8"> |
15 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1.0, user-scalable=yes"> | 15 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1.0, user-scalable=yes"> |
16 <title>firebase collection</title> | 16 <title>firebase collection</title> |
17 | 17 |
18 <script src="packages/web_components/webcomponents-lite.js"></script> | 18 <script src="packages/web_components/webcomponents-lite.js"></script> |
19 <link rel="x-dart-test" href="firebase_collection_test.dart"> | 19 <link rel="x-dart-test" href="firebase_collection_test.dart"> |
20 <!--<script type="application/dart" src="firebase_collection_test.dart"></scri
pt>--> | 20 <!--<script type="application/dart" src="firebase_collection_test.dart"></scri
pt>--> |
21 <!--<script src="packages/browser/dart.js"></script>--> | 21 <!--<script src="packages/browser/dart.js"></script>--> |
22 <script src="packages/test/dart.js"></script> | 22 <script src="packages/test/dart.js"></script> |
23 </head> | 23 </head> |
24 <body> | 24 <body> |
25 | 25 |
26 <template id="TrivialCollection"> | 26 <template id="TrivialCollection"> |
27 <firebase-collection | 27 <firebase-collection log></firebase-collection> |
28 location="https://fb-element-demo.firebaseio.com/test/trivial" | |
29 log> | |
30 </firebase-collection> | |
31 </template> | |
32 | |
33 <template id="PrimitiveCollection"> | |
34 <firebase-collection | |
35 location="https://fb-element-demo.firebaseio.com/test/primitives" | |
36 order-by-value | |
37 log> | |
38 </firebase-collection> | |
39 </template> | |
40 | |
41 <template id="ChangingChildren"> | |
42 <firebase-collection | |
43 location="https://fb-element-demo.firebaseio.com/test/changing_children" | |
44 order-by-child="foo" | |
45 log> | |
46 </firebase-collection> | |
47 </template> | |
48 | |
49 <template id="SyncingCollections"> | |
50 <firebase-collection | |
51 location="https://fb-element-demo.firebaseio.com/test/syncing" | |
52 log> | |
53 </firebase-collection> | |
54 <firebase-collection | |
55 location="https://fb-element-demo.firebaseio.com/test/syncing" | |
56 order-by-child="foo" | |
57 log> | |
58 </firebase-collection> | |
59 </template> | 28 </template> |
60 | 29 |
61 <template id="BoundCollection"> | 30 <template id="BoundCollection"> |
62 <section> | 31 <section> |
63 <!-- TODO(cdata): Add support for elements like `dom-bind` at the root | 32 <!-- TODO(cdata): Add support for elements like `dom-bind` at the root |
64 of the template to `test-fixture`, so that we can remove this | 33 of the template to `test-fixture`, so that we can remove this |
65 wrapping `section`. --> | 34 wrapping `section`. --> |
66 <template is="dom-bind"> | 35 <template is="dom-bind"> |
67 <template is="dom-repeat" items="{{data}}"> | 36 <template is="dom-repeat" items="{{data}}"> |
68 <div>[[item.value]]</div> | 37 <div>[[item.value]]</div> |
69 </template> | 38 </template> |
70 <firebase-collection | 39 <firebase-collection |
71 location="https://fb-element-demo.firebaseio.com/test/empty" | |
72 data="{{data}}" | 40 data="{{data}}" |
73 log> | 41 log> |
74 </firebase-collection> | 42 </firebase-collection> |
75 </template> | 43 </template> |
76 </section> | 44 </section> |
77 </template> | 45 </template> |
78 | 46 |
79 </body> | 47 </body> |
80 </html> | 48 </html> |
OLD | NEW |