| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 @license |
| 4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 5 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 7 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 8 Code distributed by Google as part of the polymer project is also |
| 9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 10 --> |
| 11 |
| 12 <html> |
| 13 <head> |
| 14 |
| 15 <meta charset="utf-8"> |
| 16 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 17 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> |
| 18 |
| 19 <title>Firebase Element Demos</title> |
| 20 |
| 21 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 22 <link rel="import" href="../../paper-styles/paper-styles.html"> |
| 23 <link rel="import" href="../../paper-styles/demo-pages.html"> |
| 24 <link rel="import" href="../firebase-collection.html"> |
| 25 <link rel="import" href="../firebase-document.html"> |
| 26 <link rel="import" href="x-pretty-json.html"> |
| 27 <link rel="import" href="x-login.html"> |
| 28 </head> |
| 29 <body> |
| 30 <div class="horizontal center-justified layout"> |
| 31 <div class="vertical-section"> |
| 32 <h3>Dinosaurs by Height</h3> |
| 33 <template is="dom-bind"> |
| 34 <firebase-collection |
| 35 order-by-child="height" |
| 36 location="https://dinosaur-facts.firebaseio.com/dinosaurs" |
| 37 data="{{dinosaurs}}"></firebase-collection> |
| 38 <template is="dom-repeat" items="[[dinosaurs]]" as="dinosaur"> |
| 39 <h4>[[dinosaur.__firebaseKey__]]</h4> |
| 40 <span>Height: </span><span>[[dinosaur.height]]</span><span>m</span> |
| 41 </template> |
| 42 </template> |
| 43 </div> |
| 44 <div class="vertical-section"> |
| 45 <h3>Dinosaur Scores Document</h3> |
| 46 <template is="dom-bind"> |
| 47 <firebase-document |
| 48 location="https://dinosaur-facts.firebaseio.com/scores" |
| 49 data="{{dinosaurs}}"></firebase-document> |
| 50 <x-pretty-json object=[[dinosaurs]]></x-pretty-json> |
| 51 </template> |
| 52 </div> |
| 53 |
| 54 <div class="vertical-section"> |
| 55 <h3>Authentication Example</h3> |
| 56 <x-login></x-login> |
| 57 </div> |
| 58 </div> |
| 59 </body> |
| 60 </html> |
| OLD | NEW |