polymer-template

Template Polymer elements.

by jeshuamaxey

HTML

<script src="http://www.polymer-project.org/polymer.min.js"></script>

<polymer-element name="my-element" constructor="" attributes="">
  <template>
    <content>Hello World!</content>
  </template>
  <script>
    Polymer('my-element', {
      ready: function() {
        //console.log(this.webkitShadowRoot);
      },
      enteredDocument: function() {},
      leftDocument: function() {},
      attributeChanged: function(attrName, oldVal, newVal) {
        console.log(attrName, 'old: ' + oldVal, 'new:', newVal);
      }
    });
  </script>
</polymer-element>

<my-element></my-element>