Blame view

datalets/test-datalet/test-datalet.html 809 Bytes
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  <link rel="import"

        href="../../bower_components/polymer/polymer.html">

  

  <dom-module id="test-datalet">

  

      <template>

          <!-- bind to the "owner" property -->

          This is <b>{{owner}}</b>'s name-tag element.

      </template>

  

      <script>

          BaseBehaviour ={

              properties:{

                  owner:{

                      type: String,

                      value: "surname"

                  },

                  setOwner: function(){

                      this.owner = "Base";

                  }

  

              },

              factoryImpl: function(owner) {

                  this.owner = owner;

              }

          }

  

          TestDatalet = Polymer({

              is: "test-datalet",

              behaviors: [BaseBehaviour]

          });

      </script>

  </dom-module>