UNPKG

polymer-cli

Version:
29 lines (26 loc) 548 B
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js'; /** * @customElement * @polymer */ class <%= elementClassName %> extends PolymerElement { static get template() { return html` <style> :host { display: block; } </style> <h2>Hello [[prop1]]!</h2> `; } static get properties() { return { prop1: { type: String, value: '<%= elementName %>' } }; } } window.customElements.define('<%= elementName %>', <%= elementClassName %>);