UNPKG

wct-browser-legacy

Version:

Client-side dependencies for web-component-tester tests installed via npm.

25 lines (19 loc) 459 B
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js'; class MyOtherTestElement extends PolymerElement { static get template() { return html` <h1>[[title]]</h1> `; } static get properties() { return {title: {type: String}}; } setTitle(text) { this.title = text; } constructor() { super(); this.setTitle('FUNtitled'); } } customElements.define('my-other-test-element', MyOtherTestElement);