// @ts-check import WebComponent from "../index.mjs"; export class HelloWorld extends WebComponent { name = "World"; emotion = "excited"; static properties = ["name", "emotion"]; onInit() { console.log("onInit", this.querySelector("h1")); } afterViewInit() { console.log("afterViewInit", this.querySelector("h1")); } onChanges(changes) { Object.keys(changes).forEach((name) => { console.log( `${name} changed from ${changes[name].previousValue} to ${changes[name].currentValue}` ); }); } get template() { return `