UNPKG

polymer-cli

Version:
33 lines (29 loc) 711 B
<link rel="import" href="../../bower_components/polymer/polymer-element.html"> <dom-module id="<%= elementName %>"> <template> <style> :host { display: block; } </style> <h2>Hello [[prop1]]!</h2> </template> <script> /** * @customElement * @polymer */ class <%= elementClassName %> extends Polymer.Element { static get is() { return '<%= elementName %>'; } static get properties() { return { prop1: { type: String, value: '<%= elementName %>' } }; } } window.customElements.define(<%= elementClassName %>.is, <%= elementClassName %>); </script> </dom-module>