my-list.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!--
  2. @license
  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.github.io/LICENSE.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/CONTRIBUTORS.txt
  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/PATENTS.txt
  9. -->
  10. <link rel="import" href="../../bower_components/polymer/polymer.html">
  11. <dom-module id="my-list">
  12. <template>
  13. <style>
  14. :host {
  15. display: block;
  16. }
  17. </style>
  18. <ul>
  19. <template is="dom-repeat" items="{{items}}">
  20. <li><span class="paper-font-body1">{{item}}</span></li>
  21. </template>
  22. </ul>
  23. </template>
  24. <script>
  25. (function() {
  26. 'use strict';
  27. Polymer({
  28. is: 'my-list',
  29. properties: {
  30. items: {
  31. type: Array,
  32. notify: true,
  33. }
  34. },
  35. ready: function() {
  36. this.items = [
  37. 'Responsive Web App boilerplate',
  38. 'Iron Elements and Paper Elements',
  39. 'End-to-end Build Tooling (including Vulcanize)',
  40. 'Unit testing with Web Component Tester',
  41. 'Routing with Page.js',
  42. 'Offline support with the Platinum Service Worker Elements'
  43. ];
  44. }
  45. });
  46. })();
  47. </script>
  48. </dom-module>