22 lines
373 B
JavaScript
22 lines
373 B
JavaScript
import {LitElement, html} from 'lit';
|
|
|
|
export class Player extends LitElement {
|
|
static properties = {
|
|
version: {},
|
|
};
|
|
|
|
constructor() {
|
|
super();
|
|
this.version = 'STARTING';
|
|
}
|
|
|
|
render() {
|
|
return html`
|
|
<p>Welcome to the Lit tutorial!</p>
|
|
<p>This is the ${this.version} code.</p>
|
|
`;
|
|
}
|
|
}
|
|
customElements.define('player-controls', Player);
|
|
|