import { html } from 'lit-html'; import { customElement, attribute } from '@lit-html-free/core'; @customElement('home-component') export default class extends HTMLElement { @attribute() myAttribute: number; valuesChanged( type: 'attribute' | 'property', name: string, oldValue: string, newValue: string ) { console.log('valuesChanged home component:', type, name, oldValue, newValue); } click() { this.myAttribute++; this.myAttribute++; this.myAttribute++; this.myAttribute++; this.myAttribute++; } updated() { console.log('updated home component'); } public render() { console.log('render called home component'); return html`
My attibute: ${this.myAttribute}