Blame view

bower_components/polymer-element-catalog/app/elements/catalog-package/catalog-package.html 561 Bytes
07d13c9c   isisadmin   polymer catalog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <link rel="import" href="../catalog-data/catalog-data.html">
  
  <dom-module id="catalog-package">
    <template>
      <catalog-data package-map="{{_packages}}"></catalog-data>
    </template>
  </dom-module>
  <script>
    Polymer({
      is: 'catalog-package',
      properties: {
        name: {type: String, notify: true},
        _packages: {type: Object, notify: true},
  
        data: {type: Object, notify: true, computed: 'getData(_packages,name)'}
      },
      getData: function(_packages,name) {
        if (!_packages) return;
        return _packages[name];
      }
    });
  </script>